Skip to content

Commit

Permalink
Update extensions/oidc-client/runtime/src/main/java/io/quarkus/oidc/c…
Browse files Browse the repository at this point in the history
…lient/runtime/OidcClientImpl.java

Co-authored-by: George Gastaldi <[email protected]>
  • Loading branch information
sberyozkin and gastaldi authored Jul 5, 2021
1 parent 95a6fab commit f3ea4bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private Tokens emitGrantTokens(HttpResponse<Buffer> resp, boolean refresh) {
final Object expiresInValue = json.getValue(oidcConfig.grant.expiresInProperty);
Long accessTokenExpiresAt;
if (expiresInValue != null) {
long accessTokenExpiresIn = expiresInValue instanceof Long ? (Long) expiresInValue
long accessTokenExpiresIn = expiresInValue instanceof Number ? ((Number) expiresInValue).longValue()
: Long.parseLong(expiresInValue.toString());
accessTokenExpiresAt = Instant.now().getEpochSecond() + accessTokenExpiresIn;
} else {
Expand Down

0 comments on commit f3ea4bd

Please sign in to comment.