Skip to content
Skip to navigation
Skip to topbar
Twilio Logo
Twilio Docs
Search
Search
Messaging
Voice
Serverless
Flex
Studio
All docs...
SDKs
Help
Help
Search
Log in
Sign up
On this page
ERROR: 20154
Error - 20154
Invalid Claim Set
On this page
ERROR: 20154
Error - 20154
Invalid Claim Set
Invalid Claim Set
Positive Feedback
Negative Feedback
ERROR: 20154
error-20154 page anchor
Positive Feedback
Negative Feedback
PLATFORM
ERROR
Error - 20154
error---20154 page anchor
Positive Feedback
Negative Feedback
Invalid Claim Set
invalid-claim-set page anchor
Positive Feedback
Negative Feedback
The JWT could be parsed, but the claims in the payload section are invalid.
Possible Causes
possible-causes page anchor
One of the required claims is missing.
For JWTs used as part of Public Key Client Validation, we require two custom claims:
“hrh” - HTTP headers that were included when calculating the request hash
“rqh” - The hash of the HTTP request
Possible Solution:
possible-solution page anchor
Make sure you are using the latest Twilio Helper Library
For the details on JWTs used as part of Public Key Client Validation, see
the documentation
To check whether the JWT is structurally correct, you can use the tools available at jwt.io.