Promote uat → main (PROD): GRO-2572 SSO redirect fix (#93)
CI / Test (push) Successful in 24s
CI / Lint & Typecheck (push) Successful in 33s
CI / Build & Push Docker Image (push) Successful in 12s

This commit was merged in pull request #93.
This commit is contained in:
2026-06-26 13:38:46 +00:00
parent c7b0231eaf
commit 2027d0c160
6 changed files with 88 additions and 4 deletions
+6
View File
@@ -45,6 +45,12 @@ function LoginPage() {
if (result?.error) {
setError(result.error.message ?? "Sign-in failed");
setIsLoading(false);
return;
}
// Better Auth returns the IdP authorize URL in data.url with redirect:true rather than
// issuing an HTTP 30x — the client must follow it (GRO-2572).
if (result?.data?.url) {
window.location.href = result.data.url;
}
};