fix(CSRF): Remove Cookie on Logout

main
Flycro 2023-11-10 15:51:08 +01:00
parent 9fc830a98b
commit 470efe6956
1 changed files with 3 additions and 0 deletions

View File

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