mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-10 15:32:05 -03:30
Avoid continuous reload when KC_AUTH_SESSION_HASH expires
Closes #34652 Signed-off-by: Giuseppe Graziano <g.graziano94@gmail.com>
This commit is contained in:
parent
cd86405064
commit
7d70ea7c20
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user