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

Netlify 提供者

资源

设置

回调 URL

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

环境变量

AUTH_NETLIFY_ID
AUTH_NETLIFY_SECRET

配置

/auth.ts
import NextAuth from "next-auth"
import Netlify from "next-auth/providers/netlify"
 
export const { handlers, auth, signIn, signOut } = NextAuth({
  providers: [Netlify],
})
Auth.js © Balázs Orbán 和团队 -2024