Gestione Refresh Token Completata !
This commit is contained in:
@@ -1646,6 +1646,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
this.rightDrawerOpen = true
|
||||
return false
|
||||
} else {
|
||||
console.log('Sbianca cmq i dati')
|
||||
// Sbianca cmq i dati
|
||||
const token = localStorage.getItem(toolsext.localStorage.token)
|
||||
if (token) {
|
||||
@@ -1659,6 +1660,9 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
|
||||
return true
|
||||
}).then((res) => res).catch((error) => {
|
||||
if (error.status === serv_constants.RIS_CODE__HTTP_FORBIDDEN_TOKEN_EXPIRED) {
|
||||
|
||||
}
|
||||
console.log('error dbLoad', error)
|
||||
// userStore.setErrorCatch(error)
|
||||
this.serverError = true
|
||||
|
||||
Reference in New Issue
Block a user