register

register

Brief description

Provides end-user registration. Registers an end-user for a given MiraclTrust Customer to the MiraclTrust platform.

Parameters

Name Summary
activationToken

provides an activate token for verification.

deviceName

provides a device name. Defaults to the model of the device.

pinProvider

a callback called from the SDK, when the identity PIN is required.

pushNotificationsToken

current device push notifications token. This is used when push notifications for authentication are enabled in the platform.

resultHandler



a callback to handle the result of the registration.

  • If successful, the result is MiraclSuccess with value of the registered user.
  • If an error occurs, the result is MiraclError with a message. On exception, the exception object is also passed.


userId

provides an unique user id (i.e. email).

Content
@JvmOverloads()

fun register(userId: String, activationToken: ActivationToken, pinProvider: PinProvider, resultHandler: ResultHandler<AuthenticationUser, Error>, deviceName: String, pushNotificationsToken: String?)