跳到内容
从 NextAuth.js v4 迁移?阅读 我们的迁移指南.

Medium 提供商

资源

设置

回调 URL

https://example.com/api/auth/callback/medium

环境变量

AUTH_MEDIUM_ID
AUTH_MEDIUM_SECRET

配置

/auth.ts
import NextAuth from "next-auth"
import Medium from "next-auth/providers/medium"
 
export const { handlers, auth, signIn, signOut } = NextAuth({
  providers: [Medium],
})

备注

  • Medium API 不返回电子邮件地址。
Auth.js © Balázs Orbán 和团队 -2024