tokenIsValid

Checks whether a given JWT is valid based on its expiration time.

Return

true if the JWT is valid; false otherwise.

Parameters

token

The JWT to validate.