Skip to contentSkip to navigationSkip to topbar
Page toolsOn this page
Looking for more inspiration?Visit the

51110: Twilsock: Token contains multiple grants of same product


ERROR: 51110

error-51110 page anchor
ERROR

This error occurs when the Access Token you send to Twilsock includes duplicate grants for the same product. Access Tokens use a grants object to define permissions, and you can include multiple grants only when they are for different Twilio products.

Possible causes

possible-causes page anchor
  • The grants payload contains the same product grant more than once.
  • The token was created for a client SDK but includes duplicate authorization for that same Twilio product in a single Access Token.
  • The final grants object does not match the expected Access Token structure.
  • Rebuild the Access Token so the grants object contains only one grant per product. If your client uses multiple Twilio products, keep one grant for each product and remove the duplicate grant.
  • If you are creating a token for Conversations, include one ChatGrant. If you are creating a token for Sync, include one SyncGrant.
  • Generate the token with a Twilio helper library to reduce formatting mistakes. Decode the token in jwt.io and confirm the grants payload contains only the product grants you intend to send.

Additional resources

additional-resources page anchor