Fix: Include credentials in refresh token retry request

This commit is contained in:
Motoko
2026-03-30 19:06:27 +00:00
parent 79de6567ae
commit 4b90f20bfd
13 changed files with 40 additions and 39 deletions

View File

@@ -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) {