Skip to content

Commit

Permalink
Fix issue with token refresh (#1555)
Browse files Browse the repository at this point in the history
  • Loading branch information
arvindkrishnakumar-okta authored Sep 9, 2024
1 parent ddd7810 commit d86dd05
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ public synchronized void applyToParams(List<Pair> queryParams, Map<String, Strin
if (oAuth2AccessToken != null &&
// refresh 5 minutes before token expiration
oAuth2AccessToken.getExpiresAt().minus(5, ChronoUnit.MINUTES).isBefore(Instant.now())) {
oAuth2AccessToken = null;
setAccessToken(null);
refreshOAuth2AccessToken();
}
super.applyToParams(queryParams, headerParams, cookieParams);
Expand Down

0 comments on commit d86dd05

Please sign in to comment.