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()
|
const token = getAccessTokenFn()
|
||||||
await fetch(`${API_BASE}/logout`, {
|
await fetch(`${API_BASE}/logout`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json', ...(token && { Authorization: `Bearer ${token}` }) },
|
headers: { ...(token && { Authorization: `Bearer ${token}` }) },
|
||||||
credentials: 'include',
|
credentials: 'include',
|
||||||
})
|
})
|
||||||
} catch { /* ignore */ } finally {
|
} catch { /* ignore */ } finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user