fix(auth): surface OAuth error #4
@@ -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 ---- */
|
||||
|
||||
Reference in New Issue
Block a user