validateToken

validateToken(token: String): Boolean;

The validateToken method of the JadeRequiredOneOfValueClaimAnnotation class validates a JSON Web Token by verifying that it contains a claim with the key contained in the key property, and a value equal to any of values contained in the allowedValues property.

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

2020.0.01 and higher