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() {
// Call backend logout endpoint, ignore errors
try {
await api.delete('/auth/logout')
await api.post('/auth/logout')
} catch {
// Ignore errors, proceed with local cleanup
}