authenticateUser method
Implementation
@override
Future<IAMPASSAuthenticationSession?> authenticateUser(
IAMPASSStartAuthenticationParams params) async {
String encodedParams = jsonEncode(params.toJson());
Map<String, String> args = {"params": encodedParams};
final result =
await methodChannel.invokeMethod<String>('AuthenticateUser', args);
if (result != null) {
Map<String, dynamic> valueMap = jsonDecode(result);
IAMPASSAuthenticationSession session =
IAMPASSAuthenticationSession.fromJson(valueMap);
return session;
}
return null;
}