fix: pass fetchfn parameter to registerClient and refreshAuthorizatio… (#850)

This commit is contained in:
Arjun Kumar 2025-08-14 22:06:18 +08:00 • committed by GitHub
commit aad33a15a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -359,6 +359,7 @@ async function authInternal(
const fullInformation = await registerClient(authorizationServerUrl, {
metadata,
clientMetadata: provider.clientMetadata,
fetchFn,
});
await provider.saveClientInformation(fullInformation);
@ -395,6 +396,7 @@ async function authInternal(
refreshToken: tokens.refresh_token,
resource,
addClientAuthentication: provider.addClientAuthentication,
fetchFn,
});
await provider.saveTokens(newTokens);