Fix: Include credentials in refresh token retry request
This commit is contained in:
@@ -52,6 +52,7 @@ export function useApi() {
|
||||
const retryResponse = await fetch(`${BASE_URL}${endpoint}`, {
|
||||
...options,
|
||||
headers,
|
||||
credentials: 'include', // Include cookies for auth
|
||||
body: options.body ? JSON.stringify(options.body) : undefined
|
||||
})
|
||||
if (retryResponse.ok) {
|
||||
|
||||
Reference in New Issue
Block a user