- corretto che compare errore server mentre il token è scaduto

This commit is contained in:
Surya Paolo
2025-03-14 20:21:32 +01:00
parent 564a621aad
commit dfce2bc5eb
120 changed files with 569 additions and 4452 deletions

View File

@@ -138,7 +138,7 @@ export const Api = {
}
} else {
// Se il refresh token fallisce, logout dell'utente
userStore.setAuth('', '');
// userStore.setAuth('', '');
const $router = useRouter()
throw { code: toolsext.ERR_RETRY_LOGIN };
}
@@ -147,7 +147,7 @@ export const Api = {
if (err2?.code === serv_constants.RIS_CODE__HTTP_FORBIDDEN_INVALID_TOKEN) {
userStore.setServerCode(toolsext.ERR_AUTHENTICATION);
userStore.setAuth('', '');
// userStore.setAuth('', '');
throw { status: toolsext.ERR_RETRY_LOGIN };
}
@@ -155,7 +155,7 @@ export const Api = {
throw err2;
}
} else if (status === serv_constants.RIS_CODE__HTTP_FORBIDDEN_INVALID_TOKEN) {
userStore.setAuth('', '');
// userStore.setAuth('', '');
const $router = useRouter()
throw { status: toolsext.ERR_RETRY_LOGIN };
}