Error Code: 40144 - Unexpected error decoding JWT; decode exception

This error will be returned when the JWT provided by the client to authenticate with Ably cannot be validated.

This can happen for a few reasons and will be indicated in the reason property in a connection state change object or an error returned from a REST request

Examples which will result in this error include 

  • Invalid or missing payload claims e.g. iat, exp
  • Using deprecated / unsupported signing algorithms
  • Empty string used for x-ably-capability

  • Empty string / non-string value used for x-ably-revocation-key
  • Missing kid when using JWT with your API key