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