fix: remove Content-Type header from logout request (no body to send)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user