oneTimePasscodeActivate method

  1. @override
Future<AuthResult> oneTimePasscodeActivate(
  1. String otp,
  2. String otpId
)
override

Implementation

@override
Future<AuthResult> oneTimePasscodeActivate(String otp, String otpId) async {
  try {
    final jsonString = await methodChannel.invokeMethod<String>(
        'oneTimePasscodeActivate', {'otp': otp, 'otpId': otpId});
    return AuthResult.fromJson(jsonString!);
  } catch (e) {
    throw PassageError.fromObject(object: e);
  }
}