User authentication
Introduction
The Flutter Plugin allows for user authentication with either a registered authenticator or with a pin. Both cases are based on the same method, however a different value for registeredAuthenticatorId
is required.
Getting registered authenticators
A device can have multiple registered users which can authenticate using the available authenticators. To obtain a list of available user profiles you can use the method getUserProfiles. By passing one of the profile id's you can authenticate a specific user.
To select a registered authenticator which will be used during the authentication process you need to pass it's id in the place of registeredAuthenticatorId
param. To choose a registered authenticator, first you need to get the currently registered authenticators. To get those you need to call the method getRegisteredAuthenticators.
Once a user has been registered, it can be logged in using the authenticateUser or authenticateUserImplicitly method in the case of implicit authentication. The authenticateUser method takes the id of a registered authenticator and uses it to authenticate the user. The id param can also be null
in which case the preferred authenticator (which is often PIN) will be used.
The result of successful authentication is a RegistrationResponse