diff --git a/oidc-ui/src/pages/LoginPage.tsx b/oidc-ui/src/pages/LoginPage.tsx index a9bfcbbea..919993c40 100644 --- a/oidc-ui/src/pages/LoginPage.tsx +++ b/oidc-ui/src/pages/LoginPage.tsx @@ -50,6 +50,9 @@ export default function LoginPage() { onSuccess={() => { window.onbeforeunload = null; }} + onError={() => { + window.onbeforeunload = null; + }} /> )}