Skip to content

Commit c63a5c7

Browse files
committed
Use RequestInit type for fetchArgs
1 parent d2b604f commit c63a5c7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/auth/src/api/index.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,16 +148,14 @@ export async function _performApiRequest<T, V>(
148148
headers[HttpHeader.X_FIREBASE_LOCALE] = auth.languageCode;
149149
}
150150

151-
const fetchArgs = {
151+
const fetchArgs: RequestInit = {
152152
method,
153153
headers,
154154
...body
155155
};
156156

157157
if (!isCloudflareWorker()) {
158-
Object.assign(fetchArgs, {
159-
refererPolicy: 'no-referrer'
160-
});
158+
fetchArgs.referrerPolicy = 'no-referrer';
161159
}
162160

163161
return FetchProvider.fetch()(

0 commit comments

Comments
 (0)