renewToken abstract method

Future<ZIMTokenRenewedResult> renewToken(
  1. String token
)

Update the authentication token.

Available since: 1.1.0 or above. Description: Update the authentication token so that the authentication token can be updated in time after it expires, so as to continue to use ZIM functions normally. Use cases: When you need to create a multi-person chat scene, you can create and join a room by this API. When to call: This function must be called through the instance after calling create to create the instance. Caution: After the developer receives the onTokenWillExpire callback, the developer needs to request the authentication server to regenerate a token in time.

  • token The token issued by the developer's business server, used to ensure security. The generation rules are detailed in ZEGO document website.

Implementation

Future<ZIMTokenRenewedResult> renewToken(String token);