requestPasswordToken method
Implementation
Future<void> requestPasswordToken(BioPayload payload, {int? type, bool? doWorkNow = true}) async {
this.payload = payload;
if(type != null) {
requestType = type;
}
String script = BioConstants.getJSPasswordToken(payload.userToken ?? '');
updateProgressShow(true);
if(doWorkNow == true) {
webView?.controller?.runJavaScript(
callJavascriptAsync(script)
);
// webView?.controller?.future.then((controller) {
// controller.runJavascript(
// callJavascriptAsync(script)
// );
// });
} else {
webView?.startScript = script;
}
}