verifyOtp static method

dynamic verifyOtp({
  1. required String firstName,
  2. required String lastName,
  3. required String otp,
})

Call this method after requestVerification to complete the verification if the number has to be verified with an OTP. i.e call this method when you receive either TcSdkCallbackResult.otpInitiated or TcSdkCallbackResult.otpReceived in streamCallbackData. To complete verification, it is mandatory to pass firstName and lastName of the user with the otp code received over SMS

Implementation

static verifyOtp(
        {required String firstName, required String lastName, required String otp}) async =>
    await _methodChannel
        .invokeMethod('verifyOtp', {"fname": firstName, "lname": lastName, "otp": otp});