renewToken method
- String token
更新当前登录会话的 Token。
Implementation
Future<void> renewToken(String token) async {
try {
Map req = {'token': token};
Map result = await platform_interface.Client.instance.callNativeMethod(
ChatMethodKeys.renewToken,
req,
);
ChatError.hasErrorFromResult(result);
} catch (e) {
rethrow;
}
}