tokenDetails property

TokenDetails? tokenDetails
getter/setter pair

An authenticated TokenDetails object (most commonly obtained from an Ably Token Request response).

This option is mostly useful for testing: since tokens are short-lived, in production you almost always want to use an authentication method that enables the client library to renew the token automatically when the previous one expires, such as authUrl or authCallback. Use this option if you wish to use Token authentication. Read more about Token authentication.

Implementation

TokenDetails? tokenDetails;