Jwt expiration issu

can the expiration time of jwt be set to permanent

Apr.24,2022

that depends on whether time is permanent


JWT is just a specification, where the exp requirement is a given time, that is, an expiration time. However, it is up to the server parser to determine whether the Token is out of date, and if you implement it yourself, you can resolve a specific expo value (such as 0) to be non-expired.

as far as pragmatism is concerned, you can just set a big date, such as 2099, when your system should be gone. Equivalent to permanent

Menu