Answer the question
In order to leave comments, you need to log in
How to pull out the expiration time from a JWT token?
And what does a JWT token consist of? It is not clear specifically what exp and orig_iat are? I need to somehow pull out the expiration date from there and update the token. Decode the header and payload with the atob() function in the first line, then take exp in the second line and get the date new Date(exp)
Answer the question
In order to leave comments, you need to log in
Thanks, got it all figured out. Exp(expiration time) is exactly what I need. And orig_iat is the time the token was received.
Information taken from the official website: Click
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question