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
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ export function checkCookiesAndSetTimer(loginRestartUrl) {
|
||||||
export function checkAuthSession(pageAuthSessionHash) {
|
export function checkAuthSession(pageAuthSessionHash) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const cookieAuthSessionHash = getKcAuthSessionHash();
|
const cookieAuthSessionHash = getKcAuthSessionHash();
|
||||||
if (cookieAuthSessionHash !== pageAuthSessionHash) {
|
if (cookieAuthSessionHash && cookieAuthSessionHash !== pageAuthSessionHash) {
|
||||||
location.reload();
|
location.reload();
|
||||||
}
|
}
|
||||||
}, AUTH_SESSION_TIMEOUT_MILLISECS);
|
}, AUTH_SESSION_TIMEOUT_MILLISECS);
|
||||||
|
|
Loading…
Reference in a new issue