Skip to content

Commit fdf7b67

Browse files
committed
fix: pass fetchfn parameter to registerClient and refreshAuthorization calls
1 parent f657ead commit fdf7b67

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/client/auth.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ async function authInternal(
359359
const fullInformation = await registerClient(authorizationServerUrl, {
360360
metadata,
361361
clientMetadata: provider.clientMetadata,
362+
fetchFn,
362363
});
363364

364365
await provider.saveClientInformation(fullInformation);
@@ -395,6 +396,7 @@ async function authInternal(
395396
refreshToken: tokens.refresh_token,
396397
resource,
397398
addClientAuthentication: provider.addClientAuthentication,
399+
fetchFn,
398400
});
399401

400402
await provider.saveTokens(newTokens);

0 commit comments

Comments
 (0)