sendEmailVerification
client.sendEmailVerification( authToken, redirectUrl, returnToAfterEmailConfirmation, success, failure )
About this command
Initiates the email verification process by sending a verification email to the user’s registered email address. The email contains a unique verification code required to confirm the email address.
This method requires the user to be authenticated and is typically used after signup or an email update.
Examples
import com.reach5.identity.sdk.core.models.AuthToken
client.sendEmailVerification(
authToken = authToken,
success = { emailVerification ->
// Handle success: Verification email sent
},
failure = { error ->
// Handle a ReachFive error
}
)
Parameters
Authorization token of the profile retrieved from login.
|
|||||||||||||||||
Callback called once the request has failed. You’ll get a |
|||||||||||||||||
The URL sent in the email to which the user is redirected. This URL must be whitelisted in the |
|||||||||||||||||
Callback called once the request has succeeded. |
|||||||||||||||||
Returned in the
|
Response
Type: Unit
ReachFiveError
message |
The message of the error. |
||||||||||||||
getErrorCode() |
The error code’s enumeration value. |
||||||||||||||
code |
The HTTP status code or SDK error code. |
||||||||||||||
exception |
The stack trace of the error. |
||||||||||||||
data |
Additional data about the error.
|