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() {
|
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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user