verifyPhoneNumber
client.verifyPhoneNumber( authToken, phoneNumber, verificationCode, success, failure )
About this command
Verify the profile phone number with the verification code sent by SMS.
|
Examples
import com.reach5.identity.sdk.core.models.AuthToken
val authToken: AuthToken = // The authentication token obtained following signup or login.
client.verifyPhoneNumber(
authToken = authToken,
phoneNumber = "+33750253354",
verificationCode = "0123456",
success = { _ -> ... }, // Do something
failure = { error -> ... } // Handle a ReachFive error
)
Parameters
Authorization token of the profile retrieved from login (less than 5 minutes old).
|
|||||||||||||
The phone number of the profile. Both the international format and the national conventions of the account’s country are accepted if configured in account settings. |
|||||||||||||
The verification code sent by email or SMS. |
|||||||||||||
Callback called once the request has succeeded. |
|||||||||||||
Callback called once the request has failed. You’ll get a |
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.
|