fix: Redirect loop on auth failure

This commit is contained in:
metaloozee 2025-11-09 00:22:06 +05:30
parent 6ba9c1c40c
commit 1879c161ee
2 changed files with 3 additions and 7 deletions

View file

@ -13,7 +13,7 @@ export function LogoutPage() {
async function logout() {
await post('/auth/logout');
router.push('/login');
window.location.href = '/login';
}
removeClientAuthToken();