51110: Twilsock: Token contains multiple grants of same product
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.
- The
grantspayload 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
grantsobject does not match the expected Access Token structure.
- Rebuild the Access Token so the
grantsobject 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 oneSyncGrant. - Generate the token with a Twilio helper library to reduce formatting mistakes. Decode the token in
jwt.ioand confirm thegrantspayload contains only the product grants you intend to send.