Our Twilio application, which handles outbound calls from an SSL secured website, starts throwing errors during calls. The errors occur during phone calls, and sometimes just when the browser sits idle. We have tried setting the expiration to zero, a few seconds, a few minutes, and up to 24 hours, but the errors still occur.
Errors like this are logged in the Chrome debug console:
31204 Invalid JWT token.
31205 JWT token expired.
Once the errors begin, they repeat hundreds of times while the call is still live.
What causes Twilio JWT token expired errors during working WebRTC sessions?