appleID: try dynamic secret
This commit is contained in:
@ -46,8 +46,15 @@ export const authOptions: NextAuthOptions = {
|
||||
}
|
||||
}),
|
||||
AppleProvider({
|
||||
// clientId: process.env.APPLE_APP_ID,
|
||||
// clientSecret: process.env.APPLE_SECRET
|
||||
clientId: process.env.APPLE_APP_ID,
|
||||
clientSecret: process.env.APPLE_SECRET
|
||||
clientSecret: {
|
||||
appleId: process.env.APPLE_APP_ID,
|
||||
teamId: process.env.APPLE_TEAM_ID,
|
||||
privateKey: process.env.APPLE_PK,
|
||||
keyId: process.env.APPLE_KEY_ID,
|
||||
}
|
||||
}),
|
||||
// AzureADProvider({
|
||||
// clientId: process.env.AZURE_AD_CLIENT_ID,
|
||||
@ -251,13 +258,13 @@ export const authOptions: NextAuthOptions = {
|
||||
};
|
||||
},
|
||||
},
|
||||
pages: {
|
||||
signIn: "/auth/signin",
|
||||
signOut: "/auth/signout",
|
||||
error: "/message", // Error code passed in query string as ?error=
|
||||
verifyRequest: "/auth/verify-request", // (used for check email message)
|
||||
newUser: null // If set, new users will be directed here on first sign in
|
||||
},
|
||||
// pages: {
|
||||
// signIn: "/auth/signin",
|
||||
// signOut: "/auth/signout",
|
||||
// error: "/message", // Error code passed in query string as ?error=
|
||||
// verifyRequest: "/auth/verify-request", // (used for check email message)
|
||||
// newUser: null // If set, new users will be directed here on first sign in
|
||||
// },
|
||||
}
|
||||
|
||||
export default NextAuth(authOptions)
|
Reference in New Issue
Block a user