How to check the expiration date of JWT tokens?


#1

The JWT tokens issued from our REST API expire sooner than we configured in application.conf. Is there a way to check the actual expiration date of these token for debugging purposes, to confirm that they agree/disagree with our configuration?

Thanks!


#2

Hi,

the second part of the token is a Base64 encoded JSON object. You should decode this part to see the JSON and therefore the exp claim which contains the expiration time.

https://tools.ietf.org/html/rfc7519#section-4.1.4

Best regards,
Christian


#3

I know this is almost a year late, but you can use https://jwt.io to view, and modify the token’s content