From 82e0e596173add3e98833f41416bca9cc4d1254e Mon Sep 17 00:00:00 2001 From: SauceyRed Date: Mon, 21 Jul 2025 12:16:59 +0200 Subject: [PATCH] fix: logout not working due to use of outdated HTTP method --- composables/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");