From 7570fe7be357176af584fc41f8be0dfb38b0b5b0 Mon Sep 17 00:00:00 2001 From: tanweer919 Date: Mon, 13 Jul 2026 01:45:10 +0530 Subject: [PATCH] fix(auth): surface the real OAuth completion error (console + flash) --- src/components/portal/login-flow.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/portal/login-flow.tsx b/src/components/portal/login-flow.tsx index 16094f0..775b36a 100644 --- a/src/components/portal/login-flow.tsx +++ b/src/components/portal/login-flow.tsx @@ -85,7 +85,11 @@ export function LoginFlow() { 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]); /* ---- auth resolution ---- */