feat: implement force logout event and update navigation redirects
Some checks failed
Chore App Build, Test, and Push Docker Images / build-and-push (push) Failing after 1m37s
Some checks failed
Chore App Build, Test, and Push Docker Images / build-and-push (push) Failing after 1m37s
This commit is contained in:
@@ -225,7 +225,7 @@ async function signOut() {
|
||||
try {
|
||||
await fetch('/api/auth/logout', { method: 'POST' })
|
||||
logoutUser()
|
||||
router.push('/auth')
|
||||
router.push('/')
|
||||
} catch {
|
||||
// Optionally show error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user