From 9d2ca7f592ce069218a4a0943f64e299bca0951c Mon Sep 17 00:00:00 2001 From: root Date: Fri, 13 Feb 2026 21:13:08 +0500 Subject: [PATCH] fix: google oauth fixed --- src/auth.config.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/auth.config.ts b/src/auth.config.ts index 9dc1843..3ccdddd 100644 --- a/src/auth.config.ts +++ b/src/auth.config.ts @@ -7,8 +7,9 @@ export default { Google({ clientId: process.env.GOOGLE_CLIENT_ID, clientSecret: process.env.GOOGLE_CLIENT_SECRET, - // Do NOT allow dangerous automatic account linking; require explicit flows instead - allowDangerousEmailAccountLinking: false, + // Allow account linking: users can sign up/sign in with Google OAuth + // This enables Google sign-in to create new accounts or link to existing accounts with matching email + allowDangerousEmailAccountLinking: true, }), Credentials({ name: "Credentials",