Fix: Use POST instead of DELETE for logout endpoint
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user