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