appleID: try dynamic secret

This commit is contained in:
Dobromir Popov
2024-05-03 01:03:08 +03:00
parent 4443f178bf
commit 367ca6615c
2 changed files with 19 additions and 10 deletions

View File

@ -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)