fix(auth): surface the real OAuth completion error (console + flash)

This commit is contained in:
tanweer919
2026-07-13 01:45:10 +05:30
parent 6e1a895e7e
commit 7570fe7be3
+5 -1
View File
@@ -85,7 +85,11 @@ export function LoginFlow() {
replace("identify"); replace("identify");
} }
}) })
.catch(() => { setFlash("Sign-in with that provider didn't complete. Try again."); replace("identify"); }); .catch((e) => {
console.error("[oauth] completeOAuthLogin failed:", e);
setFlash(`Google sign-in didn't complete: ${(e as Error)?.message ?? "unknown error"}`);
replace("identify");
});
}, [ready, completeOAuthLogin, router]); }, [ready, completeOAuthLogin, router]);
/* ---- auth resolution ---- */ /* ---- auth resolution ---- */