From fdf7b676f396e51e4bcc3c0b6dfb3a5e1c55f4d7 Mon Sep 17 00:00:00 2001 From: arjunkmrm Date: Wed, 6 Aug 2025 22:14:12 +0800 Subject: [PATCH] fix: pass fetchfn parameter to registerClient and refreshAuthorization calls --- src/client/auth.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/auth.ts b/src/client/auth.ts index ab8aff0c..8ac9ddd1 100644 --- a/src/client/auth.ts +++ b/src/client/auth.ts @@ -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);