51119: Twilsock: Token expired
ERROR
Twilsock rejected the Access Token because it has expired. Generate a new Access Token and reconnect the client with the updated token before making another request.
- The
expclaim in the Access Token is in the past. - The client continued using an Access Token after its configured lifetime ended.
- The system clock on the client or the server that generated the token is incorrect, which can cause the token to appear expired earlier than expected.
- Your application did not refresh the Access Token before opening or maintaining the Twilsock connection.
- Generate a new Access Token and use it to reconnect the client.
- Verify that your token generation logic sets a valid expiration time in the
expclaim. - Reduce the chance of unexpected expiration by refreshing tokens before they expire, especially for long-lived client sessions.
- Confirm that the server issuing the token and the client device both use the correct current time.
- If you need to inspect the token structure during troubleshooting, decode the JWT and confirm the expiration timestamp and grants. Do not share production secrets or private signing keys when debugging tokens.