Fix logout navigation to use window.location.href
All checks were successful
build-and-deploy / build (push) Successful in 29s
build-and-deploy / deploy (push) Successful in 3s

Use window.location.href instead of navigateTo for API route to ensure
proper server-side logout handling.
This commit is contained in:
2025-10-11 19:04:36 -06:00
parent 1269b2e489
commit 174e9565b8

View File

@@ -3,7 +3,7 @@ const { loggedIn, user, clear } = useUserSession()
const logout = async () => {
await clear()
await navigateTo('/api/auth/logout')
window.location.href = '/api/auth/logout'
}
</script>