20155: Expiration Time In The Future
API
ERROR
The JWT provided to the Twilio API is not yet valid. This typically indicates that the token's valid start time has not been reached.
- The system clock on the server that generates the token is inaccurate (clock drift), causing the token to appear not yet valid.
- The token includes an
nbfvalue that is in the future relative to current time; tokens are not accepted before thenbftimestamp.
- Correct the server's system time so that token generation uses the current time; then retry the request.
- Remove the optional
nbfclaim or ensurenbfis set to a time that is at or before the moment the token will be used. - Inspect the token to verify time-based claims (
nbf,iat,exp) are reasonable and consistent with Twilio's expectations; regenerate the token immediately before use if needed.