42School Provider
Resources
Setup
Callback URL
https://example.com/api/auth/callback/42-schoolEnvironment Variables
AUTH_42_SCHOOL_ID
AUTH_42_SCHOOL_SECRETConfiguration
/auth.ts
import NextAuth from "next-auth"
import 42School from "next-auth/providers/42-school"
export const { handlers, auth, signIn, signOut } = NextAuth({
providers: [42School],
})Notes
- 42 returns a field on
Accountcalledcreated_atwhich is a number, this is different from the default schema’s datatype for this field. Check out the 42 School docs for more info. Make sure to add or edit this field in your database schema in case if you are using an database adapter.