diff --git a/composables/auth.ts b/composables/auth.ts index bceecb3..6cb3c41 100644 --- a/composables/auth.ts +++ b/composables/auth.ts @@ -41,7 +41,7 @@ export const useAuth = () => { async function logout() { console.log("access:", accessToken.value); - await fetchWithApi("/auth/logout", { method: "GET", credentials: "include" }); + await fetchWithApi("/auth/logout", { method: "DELETE", credentials: "include" }); clearAuth(); return await navigateTo("/login");