authenticate method
- {@required AuthenticationSessionSettings settings}
Authenticate user @param settings Session settings
Implementation
static Future<SessionResult> authenticate(
{@required AuthenticationSessionSettings settings}) async {
String txtResult;
String encodedSettings = jsonEncode(settings.toJson());
txtResult = await Veridflutterplugin.channel
.invokeMethod('authenticate', {"settings": encodedSettings});
if (txtResult == 'null') {
// session canceled
return null;
}
SessionResult result = SessionResult.fromJson(decodeResult(pencoded: txtResult));
return result;
}