register
fun register(userId: String, activationToken: String, pinProvider: PinProvider, pushNotificationsToken: String? = null, resultHandler: ResultHandler<User, RegistrationException>)
Provides end-user registration. Registers an end-user for a given MIRACLTrust Project to the MIRACLTrust platform.
Parameters
user Id
provides an unique user id (i.e. email).
activation Token
provides an activate token for verification.
pin Provider
a callback called from the SDK, when the identity PIN is required.
push Notifications Token
current device push notifications token. This is used when push notifications for authentication are enabled in the platform.
result Handler
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.