forked from Goutam/lynkeduppro-crm
Merge pull request 'fix(auth): surface OAuth error' (#4) from feat/login-methods into goutamnextflow
This commit is contained in:
@@ -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 ---- */
|
||||||
|
|||||||
Reference in New Issue
Block a user