verifyChallenge method
返回值可能为null
.
Case 1: 开启TFA验证后
Case 2: 验证ThisWasMe
Implementation
Future<SXTuple1<IGLoggedInUser>> verifyChallenge(String code) async {
_checkChallengelock();
final apiPath = _account?.state.challengeLock?.apiPath;
final body = {"device_id": _deviceId, "security_code": code};
return (await _apiNet.postSignedJson(apiPath, body,
directory: false, action: IGAPIAction.AuthChallengeVerify))
.tuple1();
}