Account Verification

Pre-requisite: The user has to be signed in to perform the following operations.


Verifying the User email

To send the verification mail to the user the following method can be called.

InstaVision.userServices.sendVerificationEmail(
  onSuccess = {
    // Email sent successfully
  },
  onError = { error ->
    // The error object contains the error code and message
  }
)

Getting Onetime Token

To get the onetime token that can be used to access the user portal the following method can be called.

InstaVision.userServices.getOneTimeToken(
  onSuccess = { response ->
    // The response object contains the token
  },
  onError = { error ->
    // The error object contains the error code and message
  }
)