From 857a3123a8171fed31a4ef1c99aa9a3a9833f30c Mon Sep 17 00:00:00 2001 From: Motoko Date: Mon, 30 Mar 2026 15:56:34 +0000 Subject: [PATCH] Fix: Use POST instead of DELETE for logout endpoint --- src/stores/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/auth.ts b/src/stores/auth.ts index 9e50109..0fed8dc 100644 --- a/src/stores/auth.ts +++ b/src/stores/auth.ts @@ -41,7 +41,7 @@ export const useAuthStore = defineStore('auth', () => { async function logout() { // Call backend logout endpoint, ignore errors try { - await api.delete('/auth/logout') + await api.post('/auth/logout') } catch { // Ignore errors, proceed with local cleanup }