42 学校提供商
资源
设置
回调 URL
https://example.com/api/auth/callback/42-school
环境变量
AUTH_42_SCHOOL_ID
AUTH_42_SCHOOL_SECRET
配置
/auth.ts
import NextAuth from "next-auth"
import 42School from "next-auth/providers/42-school"
export const { handlers, auth, signIn, signOut } = NextAuth({
providers: [42School],
})