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) {
|
||||
setTimeout(() => {
|
||||
const cookieAuthSessionHash = getKcAuthSessionHash();
|
||||
if (cookieAuthSessionHash !== pageAuthSessionHash) {
|
||||
if (cookieAuthSessionHash && cookieAuthSessionHash !== pageAuthSessionHash) {
|
||||
location.reload();
|
||||
}
|
||||
}, AUTH_SESSION_TIMEOUT_MILLISECS);
|
||||
|
|
Loading…
Reference in a new issue