Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
adutra committed Jun 12, 2024
1 parent 6104f0a commit 787216c
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,15 @@ public Tokens fetchNewTokens(Tokens currentTokens) {

TokenExchangeConfig tokenExchangeConfig = config.getTokenExchangeConfig();

AccessToken accessToken = currentTokens.getAccessToken();
RefreshToken refreshToken = currentTokens.getRefreshToken();

TypedToken subjectToken =
tokenExchangeConfig
.getSubjectTokenProvider()
.apply(currentTokens.getAccessToken(), currentTokens.getRefreshToken());
tokenExchangeConfig.getSubjectTokenProvider().apply(accessToken, refreshToken);
TypedToken actorToken =
tokenExchangeConfig
.getActorTokenProvider()
.apply(currentTokens.getAccessToken(), currentTokens.getRefreshToken());
tokenExchangeConfig.getActorTokenProvider().apply(accessToken, refreshToken);

Objects.requireNonNull(subjectToken);

TokensExchangeRequest.Builder request =
TokensExchangeRequest.builder()
Expand Down

0 comments on commit 787216c

Please sign in to comment.