getActivationToken

# getActivationToken


fun getActivationToken(verificationUri: Uri, resultHandler: ResultHandler<ActivationTokenResponse, ActivationTokenException>)

The method confirms user verification and as a result, an activation token is obtained. This activation token should be used in the registration process.

# Parameters

verificationUri a verification URI received as part of the verification process.
resultHandler a callback to handle the result of the verification.
- If successful, the result is MIRACLSuccess with the ActivationTokenResponse. - If an error occurs, the result is MIRACLError with a message. On exception, the exception object is also passed.


fun getActivationToken(userId: String, code: String, resultHandler: ResultHandler<ActivationTokenResponse, ActivationTokenException>)

The method confirms user verification and as a result, an activation token is obtained. This activation token should be used in the registration process.

# Parameters

userId identifier of the user.
code the verification code sent to the user email.
resultHandler a callback to handle the result of the verification.
- If successful, the result is MIRACLSuccess with the ActivationTokenResponse. - If an error occurs, the result is MIRACLError with a message. On exception, the exception object is also passed.