fix: Redirect loop on auth failure
This commit is contained in:
@@ -13,7 +13,7 @@ export function LogoutPage() {
|
||||
async function logout() {
|
||||
await post('/auth/logout');
|
||||
|
||||
router.push('/login');
|
||||
window.location.href = '/login';
|
||||
}
|
||||
|
||||
removeClientAuthToken();
|
||||
|
||||
Reference in New Issue
Block a user