diff --git a/themes/src/main/resources/theme/base/login/resources/js/authChecker.js b/themes/src/main/resources/theme/base/login/resources/js/authChecker.js index 92053f843f..8507e71663 100644 --- a/themes/src/main/resources/theme/base/login/resources/js/authChecker.js +++ b/themes/src/main/resources/theme/base/login/resources/js/authChecker.js @@ -36,7 +36,7 @@ export function checkCookiesAndSetTimer(loginRestartUrl) { export function checkAuthSession(pageAuthSessionHash) { setTimeout(() => { const cookieAuthSessionHash = getKcAuthSessionHash(); - if (cookieAuthSessionHash !== pageAuthSessionHash) { + if (cookieAuthSessionHash && cookieAuthSessionHash !== pageAuthSessionHash) { location.reload(); } }, AUTH_SESSION_TIMEOUT_MILLISECS);