Casdoor Provider
Resources
NOTE: Set
AUTH_CASDOOR_ISSUERto the base URL of your Casdoor instance (defaults tohttps://door.casdoor.com).
Setup
Callback URL
https://example.com/api/auth/callback/casdoorEnvironment Variables
AUTH_CASDOOR_ID
AUTH_CASDOOR_SECRET
AUTH_CASDOOR_ISSUER=https://door.casdoor.comConfiguration
/auth.ts
import NextAuth from "next-auth"
import Casdoor from "next-auth/providers/casdoor"
export const { handlers, auth, signIn, signOut } = NextAuth({
providers: [Casdoor],
})