#6930 - FIX bug logout #242

Merged
alexm merged 6 commits from 6930_fix_bug into dev 2024-03-18 12:35:02 +00:00
1 changed files with 4 additions and 4 deletions
Showing only changes of commit 0d3d002baf - Show all commits

View File

@ -37,7 +37,7 @@ export function useSession() {
headers: { Authorization: localStorage.getItem('tokenMultimedia') },
});
} catch (error) {
notify('errors.userConfig', 'negative');
notify('errors.statusUnauthorized', 'negative');
} finally {
localStorage.removeItem('tokenMultimedia');
}
@ -48,7 +48,7 @@ export function useSession() {
headers: { Authorization: localStorage.getItem('token') },
});
} catch (error) {
notify('errors.userConfig', 'negative');
notify('errors.statusUnauthorized', 'negative');
} finally {
localStorage.removeItem('token');
}
@ -60,7 +60,7 @@ export function useSession() {
headers: { Authorization: sessionStorage.getItem('tokenMultimedia') },
});
} catch (error) {
notify('errors.userConfig', 'negative');
notify('errors.statusUnauthorized', 'negative');
} finally {
sessionStorage.removeItem('tokenMultimedia');
}
@ -71,7 +71,7 @@ export function useSession() {
headers: { Authorization: sessionStorage.getItem('token') },
});
} catch (error) {
notify('errors.userConfig', 'negative');
notify('errors.statusUnauthorized', 'negative');
} finally {
sessionStorage.removeItem('token');
}