fix(CSRF): Remove Cookie on Logout

This commit is contained in:
2023-11-10 15:51:08 +01:00
parent 9fc830a98b
commit 470efe6956

View File

@@ -76,6 +76,9 @@ export function useAuth<T = User>() {
await $larafetch('/logout', { method: 'post' })
user.value = null
const csrf_cookie = useCookie('XSRF-TOKEN')
csrf_cookie.value = null
await router.push('/login')
}