-
Notifications
You must be signed in to change notification settings - Fork 145
Closed
Labels
feature requestA feature has been asked for or suggested by the communityA feature has been asked for or suggested by the community
Description
Describe the problem you'd like to have solved
It would be great if we could determine if the token inside a TokenHolder was still valid, from a time perspective.
Describe the ideal solution
An isExpired() method for TokenHolder that would return true if the exp time has passed for the token, otherwise false.
Alternatives and current work-arounds
Decode the token manually and check the exp time like:
JWT.decode(managementToken.getAccessToken()).getExpiresAt().toInstant().isBefore(Instant.now())
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature requestA feature has been asked for or suggested by the communityA feature has been asked for or suggested by the community