updateLoginToken abstract method

Future<int?> updateLoginToken(
  1. String token
)

Updates the Token used by the user to log in.

The Token has a certain valid period. When the Token expires, you need to call this method to update the login Token.
If RTCVideo.login is called with an expired Token, the login fails and the local user will receive RTCVideoEventHandler.onLoginResult about corresponding error code. You need to reacquire a Token and update it with this method.

Return value:

If the token is invalid and the login fails, call this method to update the token, and the SDK will automatically log in again. The user does not need to call RTCVideo.login.

Implementation

Future<int?> updateLoginToken(String token);