Fix logout: clear sessionStorage redirect flag
This commit is contained in:
@@ -22,6 +22,7 @@ export const Auth = {
|
|||||||
logout() {
|
logout() {
|
||||||
localStorage.removeItem(TOKEN_KEY);
|
localStorage.removeItem(TOKEN_KEY);
|
||||||
localStorage.removeItem(USER_KEY);
|
localStorage.removeItem(USER_KEY);
|
||||||
|
sessionStorage.removeItem('auth_redirect_done');
|
||||||
window.location.href = '../index.php';
|
window.location.href = '../index.php';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user