diff --git a/src/auth/antigravity/fetch.ts b/src/auth/antigravity/fetch.ts index 6a12298..80f6f2f 100644 --- a/src/auth/antigravity/fetch.ts +++ b/src/auth/antigravity/fetch.ts @@ -318,8 +318,12 @@ export function createAntigravityFetch( ) if (response === "pass-through") { - debugLog("Non-string body detected, passing through to original fetch") - return fetch(url, init) + debugLog("Non-string body detected, passing through with auth headers") + const headersWithAuth = { + ...init.headers, + Authorization: `Bearer ${cachedTokens.access_token}`, + } + return fetch(url, { ...init, headers: headersWithAuth }) } if (response) {