signCrossDeviceSession

suspend fun signCrossDeviceSession(crossDeviceSession: CrossDeviceSession, user: User, pinProvider: PinProvider): MIRACLResult<Unit, SigningException>

Generates a signature for a hash provided by the crossDeviceSession and updates the session.

Return

A MIRACLResult representing the result of the signing operation:

Parameters

crossDeviceSession

The details for the signing operation.

user

A user to sign with.

pinProvider

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


fun signCrossDeviceSession(crossDeviceSession: CrossDeviceSession, user: User, pinProvider: PinProvider, resultHandler: ResultHandler<Unit, SigningException>)

Generates a signature for a hash provided by the crossDeviceSession parameter and updates the session.

Parameters

crossDeviceSession

The details for the signing operation.

user

A user to sign with.

pinProvider

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

resultHandler

A callback to handle the result of the signing.

  • If successful, the result is a MIRACLSuccess.

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