Reputation: 659
I think the JSW certification flow is as follows.
Authentication method 5: Whether the combination of the decoded HEADER and the decoded CLAIM matches the SECRETKEY.
I have a question. Where is the expiration saved?
FYR. I used this library. https://github.com/auth0/node-jsonwebtoken
Upvotes: 2
Views: 1355
Reputation: 4264
The expiration is saved inside the CLAIM. As written in the RFC.
4.1. Registered Claim Names
4.1.4. "exp" (Expiration Time) Claim
The "exp" (expiration time) claim identifies the expiration time on or after which the JWT MUST NOT be accepted for processing. The processing of the "exp" claim requires that the current date/time MUST be before the expiration date/time listed in the "exp" claim.
Also, take a look at jwt.io it is much easier to read than a RFC.
Upvotes: 4