#6930 - FIX bug logout #242
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue