I am generating the token using PHP SDK. The token signature is verified in jwt.io. All the keys are correct.
While creating the chat client, it throws error.
ems.us1.twilio.com/v1/token a status of 401 (Unauthorized)
EMS E: Error: The authorization with Token failed media.twiliocdn.com/sdk/js/chat/releases/2.2.0/twilio-chat.min.js:241
Attached screenshot shows the token data from jwt.io.