- corretto che compare errore server mentre il token è scaduto
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user