Closed rakesh1988 closed 8 years ago
The jsonwebtoken
module already checks if the token is expired when calling verify
.
Hi Rakesh. First of all, thanks for this. However, as kvchen mentioned, the check is already performed by the jsonwebtoken
module we are leveraging, so there's no need for further checks here. But this made me realize that maybe some comments about this fact would be of use, I guess I'll add them for clarification.
Hi, I have added another condition to check if the JWT is already expired. If you feel this check is required, please accept my pull request.