validateToken

validateToken(token: String): Boolean;

The validateToken method of the JadeRequiredSingleValueClaimAnnotation class validates a JSON Web Token by verifying that it contains a claim with the key contained in the key property and the value contained in the expectedValue property.

This method returns true if the JSON Web Token contains a claim with the specified key and value; otherwise it returns false.

2020.0.01 and higher