authenticateUser method
Future<OWRegistrationResponse>
authenticateUser(
- String profileId,
- 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);
}
}