How long is my JWT valid for?

Question

  • When does my token expire?
  • When does my JWT expire?

Answer

When generating your JWT for use with Nexmo's products, you can set the expiration time (exp) as you wish. The maximum time Nexmo will honour is 24 hours, and we will not accept the same token if it is more than 24 after the issued at time (iat), regardless of whether the expiration time indicates it to be valid still.

If an expiration time (exp) has not provided, then Nexmo will accept the token for 15 minutes only, rejecting anything after this period.

If both an issued at time (iat) and an expiration time (exp) has not provided, then Nexmo will reject the token.

Have more questions? Submit a request