mobileAuthWithOtp method
Starts mobile authentication on web by OTP.
Implementation
Future<String?> mobileAuthWithOtp(String data) async {
try {
var isSuccess = await Onegini.instance.channel
.invokeMethod(Constants.handleMobileAuthWithOtp, <String, dynamic>{
'data': data,
});
return isSuccess;
} on TypeError catch (error) {
throw PlatformException(
code: Constants.wrapperTypeError.code.toString(),
message: Constants.wrapperTypeError.message,
stacktrace: error.stackTrace?.toString());
}
}