Im encountering this error while trying to use the Twilio voice JS SDK on a trial account. My setup involves generating a JWT using python with the following verified (and quadrouple checked) environment variables:
TWILIO_ACCOUNT_SID, TWILIO_API_KEY, TWILIO_API_SECRET, and other necessary credentials.
I am using the correct API key SID and API secret for token generation, and the JTW (verified in jwt.io) appear valid, as well as my server time being synchronised. Despite this, upon calling device registration, i get a "{"payload":{"error":{"code":31204,"message":"JWT is invalid"}},"type":"error","version":""}" message.
Any ideas would be amazing, Ive been stuck on this for a few days now.
Eternal gratitude and thanks!