fix: remove Content-Type header from logout request (no body to send)

This commit is contained in:
BOHA
2026-03-23 20:46:29 +01:00
parent aec822adc2
commit d92c5c56ac

View File

@@ -222,7 +222,7 @@ export function AuthProvider({ children }: { children: ReactNode }) {
const token = getAccessTokenFn()
await fetch(`${API_BASE}/logout`, {
method: 'POST',
headers: { 'Content-Type': 'application/json', ...(token && { Authorization: `Bearer ${token}` }) },
headers: { ...(token && { Authorization: `Bearer ${token}` }) },
credentials: 'include',
})
} catch { /* ignore */ } finally {