Fix: Use POST instead of DELETE for logout endpoint

This commit is contained in:
Motoko
2026-03-30 15:56:34 +00:00
parent 329f7509f5
commit 857a3123a8

View File

@@ -41,7 +41,7 @@ export const useAuthStore = defineStore('auth', () => {
async function logout() { async function logout() {
// Call backend logout endpoint, ignore errors // Call backend logout endpoint, ignore errors
try { try {
await api.delete('/auth/logout') await api.post('/auth/logout')
} catch { } catch {
// Ignore errors, proceed with local cleanup // Ignore errors, proceed with local cleanup
} }