Fix logout: clear sessionStorage redirect flag

This commit is contained in:
mwpn
2025-12-18 11:38:13 +07:00
parent 1528559c20
commit 8c2419d1a7

View File

@@ -22,6 +22,7 @@ export const Auth = {
logout() {
localStorage.removeItem(TOKEN_KEY);
localStorage.removeItem(USER_KEY);
sessionStorage.removeItem('auth_redirect_done');
window.location.href = '../index.php';
}
};