Commit ·
9bc964f
1
Parent(s): c46654e
Fix: Google link failure now falls back to full sign-in instead of error toast
Browse files- src/js/auth/auth.js +4 -5
src/js/auth/auth.js
CHANGED
|
@@ -114,11 +114,10 @@ async function linkGoogle() {
|
|
| 114 |
|
| 115 |
return signInWithGoogle();
|
| 116 |
} catch (err) {
|
| 117 |
-
console.
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
return { success: false, error: err.message };
|
| 122 |
}
|
| 123 |
}
|
| 124 |
|
|
|
|
| 114 |
|
| 115 |
return signInWithGoogle();
|
| 116 |
} catch (err) {
|
| 117 |
+
console.warn('linkIdentity failed, falling back to signInWithGoogle:', err.message);
|
| 118 |
+
// linkIdentity often fails when manual linking is disabled in Supabase.
|
| 119 |
+
// Fall back to a full Google sign-in instead of showing an error.
|
| 120 |
+
return signInWithGoogle();
|
|
|
|
| 121 |
}
|
| 122 |
}
|
| 123 |
|