authenticateUser method

Future<OWRegistrationResponse> authenticateUser(
  1. String profileId,
  2. OWAuthenticatorType? authenticatorType
)

Starts authentication flow.

If registeredAuthenticatorId is null, starts authentication by default authenticator. Usually it is Pin authenticator.

Implementation

Future<OWRegistrationResponse> authenticateUser(
  String profileId,
  OWAuthenticatorType? authenticatorType,
) async {
  if (authenticatorType != null) {
    return await api.authenticateUser(profileId, authenticatorType);
  } else {
    return await api.authenticateUserPreferred(profileId);
  }
}