Merge pull request 'fix(auth): surface OAuth error' (#4) from feat/login-methods into goutamnextflow

This commit is contained in:
2026-07-12 20:15:17 +00:00
+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 ---- */