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 }