fix: google oauth fixed
This commit is contained in:
parent
9f508f4182
commit
9d2ca7f592
@ -7,8 +7,9 @@ export default {
|
|||||||
Google({
|
Google({
|
||||||
clientId: process.env.GOOGLE_CLIENT_ID,
|
clientId: process.env.GOOGLE_CLIENT_ID,
|
||||||
clientSecret: process.env.GOOGLE_CLIENT_SECRET,
|
clientSecret: process.env.GOOGLE_CLIENT_SECRET,
|
||||||
// Do NOT allow dangerous automatic account linking; require explicit flows instead
|
// Allow account linking: users can sign up/sign in with Google OAuth
|
||||||
allowDangerousEmailAccountLinking: false,
|
// This enables Google sign-in to create new accounts or link to existing accounts with matching email
|
||||||
|
allowDangerousEmailAccountLinking: true,
|
||||||
}),
|
}),
|
||||||
Credentials({
|
Credentials({
|
||||||
name: "Credentials",
|
name: "Credentials",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user