Promote uat → main (PROD): GRO-2572 SSO redirect fix (#93)
This commit was merged in pull request #93.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user