Authentication
Social Logins
providers: [
GoogleProvider({
clientId: process.env.GOOGLE_ID,
clientSecret: process.env.GOOGLE_SECRET,
// allowDangerousEmailAccountLinking // optional for each provider
async profile(profile): Promise<User> {
// mapped to exact same model as in DB and elsewhere in the app
},
}),
FacebookProvider({
clientId: process.env.FACEBOOK_APP_ID,
clientSecret: process.env.FACEBOOK_SECRET,
async profile(profile): Promise<User> {
// mapped to exact same model as in DB and elsewhere in the app
}
}),
]Google 🟨
Facebook 🟦
Magic links - passwordless sign-in
Last updated

