Improved InvalidToken handling for #1653

This commit is contained in:
the-djmaze 2024-07-07 15:48:26 +02:00
parent 7f64dee54b
commit 288ff23f2b
3 changed files with 18 additions and 7 deletions

View file

@ -10,9 +10,9 @@ const getURL = (add = '') => serverRequest('Json') + pString(add),
checkResponseError = data => {
const err = data ? data.ErrorCode : null;
if (Notifications.InvalidToken === err) {
console.error(getNotification(err));
console.error(getNotification(err) + ` (${data.ErrorMessageAdditional})`);
// alert(getNotification(err));
rl.logoutReload();
setTimeout(rl.logoutReload, 5000);
} else if ([
Notifications.AuthError,
Notifications.ConnectionError,