跳至內容
從 NextAuth.js v4 遷移?請閱讀 我們的遷移指南.

Auth0 供應商

資源

設定

回呼網址

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

環境變數

AUTH_AUTH0_ID
AUTH_AUTH0_SECRET

組態

/auth.ts
import NextAuth from "next-auth"
import Auth0 from "next-auth/providers/auth0"
 
export const { handlers, auth, signIn, signOut } = NextAuth({
  providers: [Auth0],
})
Auth.js © Balázs Orbán 及團隊 -2024