# authenticate
fun authenticate(user: User, pinProvider: PinProvider, resultHandler: ResultHandler<String, AuthenticationException>)
Generate an authentication code for a registered user.
Use this method to authenticate from your application. This method generates so called authCode
, which needs to be sent to a server for verification. When verification is finished authentication is successful.
# Parameters
user | the user to authenticate. |
pinProvider | a callback called from the SDK, when the identity PIN is required. |
resultHandler | a callback to handle the result of the authentication. - If successful, the result is MIRACLSuccess. - If an error occurs, the result is MIRACLError with a message. On exception, the exception object is also passed. |