updateIdToken static method
get new id token
Implementation
static Future<AuthResult> updateIdToken() async {
final Result result = await post('/api/v2/users/refresh-token', null);
AuthResult authResult = AuthResult(result);
if (result.code == 200) {
authResult.user = await createUser(result);
}
return authResult;
}