enable Apple ID SSO

This commit is contained in:
Dobromir Popov
2024-04-04 00:13:58 +03:00
parent 488dae6505
commit 52fc9b6c9f
2 changed files with 15 additions and 12 deletions

View File

@ -41,11 +41,15 @@ export const authOptions: NextAuthOptions = {
}
}
}),
AzureADProvider({
clientId: process.env.AZURE_AD_CLIENT_ID,
clientSecret: process.env.AZURE_AD_CLIENT_SECRET,
tenantId: process.env.AZURE_AD_TENANT_ID,
AppleProvider({
clientId: process.env.APPLE_ID,
clientSecret: process.env.APPLE_SECRET
}),
// AzureADProvider({
// clientId: process.env.AZURE_AD_CLIENT_ID,
// clientSecret: process.env.AZURE_AD_CLIENT_SECRET,
// tenantId: process.env.AZURE_AD_TENANT_ID,
// }),
CredentialsProvider({
// The name to display on the sign in form (e.g. 'Sign in with...')
name: 'Credentials',
@ -87,11 +91,7 @@ export const authOptions: NextAuthOptions = {
return null;
}
}),
// AppleProvider({
// clientId: process.env.APPLE_ID,
// clientSecret: process.env.APPLE_SECRET
// })
})
/*
EmailProvider({
server: {