diff --git a/composables/useAuth.ts b/composables/useAuth.ts index 9e649aa..587e12c 100644 --- a/composables/useAuth.ts +++ b/composables/useAuth.ts @@ -76,6 +76,9 @@ export function useAuth() { await $larafetch('/logout', { method: 'post' }) user.value = null + const csrf_cookie = useCookie('XSRF-TOKEN') + csrf_cookie.value = null + await router.push('/login') }