validator.js icon indicating copy to clipboard operation
validator.js copied to clipboard

Implement a new method, **isJWTExpiration**, to validate the expiration of JWTs using the "exp" claim.

Open P-1000 opened this issue 3 years ago • 1 comments

Feature Request: Implement isJWTExpiration Method

Description: I would like to propose the addition of a new method called isJWTExpiration to the library. This method would serve the purpose of validating JSON Web Tokens (JWTs) based on their "exp" claim, which denotes the token's expiration timestamp.

Implementation Details: The isJWTExpiration method would accept a JWT as input and return true if the token is still valid (i.e., it has not expired), and false if it has expired. It should compare the "exp" claim of the JWT to the current timestamp to make this determination.

Requested Action: I kindly request that this feature request be assigned to me. I am interested in contributing to the project and would be enthusiastic about implementing this feature.

P-1000 avatar Oct 01 '23 06:10 P-1000

@P-1000 Can I work on this issue? Or are you still on it?

VatsalBhuva11 avatar Oct 04 '23 03:10 VatsalBhuva11