Auth UI: fix safari popup block (#24780)

This commit is contained in:
Michael Geers 2025-10-27 08:49:32 +01:00 • committed by GitHub
parent a56a8b157c
commit 245615121c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -223,7 +223,7 @@ export default defineComponent({
validateStatus: (code) => [200, 400].includes(code),
});
if (response.status === 200) {
window.open(response.data?.loginUri, "_blank");
window.location.href = response.data?.loginUri;
} else {
alert(`Failed to login: ${response.data?.error}`);
}