authenticateUser
Your users can authenticate themselves using any authenticator registered to them. If a user is already authenticated when calling this function, they will be logged out and have to authenticate again.
It may be required to handle authentication with some additional action (PIN/Fingerprint) handling. Please refer to addEventListener and User authentication for more information.
authenticateUser(profileId: string, authenticatorId: string|null): Promise<Types.AuthData>;
Property | Type | Description |
---|---|---|
profileId | string | The profile id for which you want to authenticate |
authenticatorId | string | null | The authenticator that you want to use, uses preferred when null |
Success
Property | Description |
---|---|
AuthData | The profileId and an optional customInfo object with additional data returned as a result of the custom authentication or the custom registration process. |
Example