authenticateWithQRCode

Authenticates an end user on the MIRACL Trust platform.

Use this method to authenticate another device or application using a QR Code displayed on the MIRACL Trust login page.

Return

A MIRACLResult representing the result of the authentication:

Parameters

user

The user to authenticate.

qrCode

A string read from the QR code.

pinProvider

A callback called by the SDK when the PIN is requested.


fun authenticateWithQRCode(user: User, qrCode: String, pinProvider: PinProvider, resultHandler: ResultHandler<Unit, AuthenticationException>)

Authenticates an end user on the MIRACL Trust platform.

Use this method to authenticate another device or application using a QR Code displayed on the MIRACL Trust login page.

Parameters

user

The user to authenticate.

qrCode

A string read from the QR code.

pinProvider

A callback called by the SDK when the PIN is requested.

resultHandler

A callback to handle the result of the authentication.

  • If successful, the result is a MIRACLSuccess.

  • If an error occurs, the result is a MIRACLError with an exception describing issues with the operation.