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
}
)
If the verification email cannot be sent through Firebase, the SDK automatically falls back to the InstaVision backend, so this call can still succeed when Firebase itself is failing.
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
}
)