Skip to content

Commit

Permalink
feat: remove expiration handle since identity sdk should auto renew it
Browse files Browse the repository at this point in the history
(cherry picked from commit 393a9a4)
  • Loading branch information
1nb0und committed Jan 24, 2024
1 parent 1b7a467 commit b5a3572
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ private String getIdentityToken(Product product) {
Identity identity = identityConfig.get(product).getIdentity();
String audience = jwtConfig.getProduct(product).getAudience();
Tokens identityTokens = identity.authentication().requestToken(audience);
try {
identity.authentication().verifyToken(identityTokens.getAccessToken());
} catch (TokenExpiredException exception) {
identityTokens = identity.authentication().renewToken(identityTokens.getRefreshToken());
}
return identityTokens.getAccessToken();
}

Expand Down

0 comments on commit b5a3572

Please sign in to comment.