V
V
val182020-02-05 11:58:26
JavaScript
val18, 2020-02-05 11:58:26

What method to use to check the lifetime of a jwt token?

How to check JWT lifetime? I have a generated token, and it is necessary to check its lifetime, so that in case of an expired validity period, regenerate it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor, 2020-02-05
@IgorPI

By hand.
When you have received the token, you need to extract the payload, it should contain: information about the time of issuance and when it expires.
Here, check it out.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question