Update logout to stay on home page instead of redirecting to login

This commit is contained in:
2025-10-01 22:27:24 -04:00
parent 71e39cceb1
commit 315336a6e9

View File

@@ -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>