Skip to content

Commit 1259cc2

Browse files
committed
use getter in method
1 parent 2af6c81 commit 1259cc2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/abstractions/src/authentication/baseBearerTokenAuthenticationProvider.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,7 @@ export class BaseBearerTokenAuthenticationProvider implements AuthenticationProv
3636
}
3737
};
3838

39-
public getAccessTokenProvider = () => this.accessTokenProvider;
39+
public get accessTokenProviderInstance(): AccessTokenProvider {
40+
return this.accessTokenProvider;
41+
}
4042
}

packages/http/fetch/src/middlewares/authorizationHandler.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export class AuthorizationHandler implements Middleware {
8686
if (claims) {
8787
additionalAuthenticationContext.claims = claims;
8888
}
89-
return await this.authenticationProvider.getAccessTokenProvider().getAuthorizationToken(url, additionalAuthenticationContext);
89+
return await this.authenticationProvider.accessTokenProvider.getAuthorizationToken(url, additionalAuthenticationContext);
9090
}
9191

9292
private readonly getClaimsFromResponse = (response: Response, claims?: string) => {

0 commit comments

Comments
 (0)