Update logout to stay on home page instead of redirecting to login
This commit is contained in:
@@ -120,6 +120,7 @@ const olderSermons = computed(() => {
|
||||
|
||||
async function handleLogout() {
|
||||
await $fetch('/api/auth/logout', { method: 'POST' })
|
||||
await navigateTo('/login')
|
||||
// Refresh the page to update authentication state
|
||||
window.location.reload()
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user