startMfaEmailRegistration
client.startMfaEmailRegistration( authToken, redirectUri, success, failure )
About this command
Starts the MFA email registration flow. When the flow is started, an email is sent to the user for verification.
If the user already has a verified email as an identifier in their account, no additional verification code is sent. If an existing email exists but is unverified, it becomes automatically verified with verifyMfaEmailRegistration. |
Examples
import com.reach5.identity.sdk.core.models.AuthToken
import com.reach5.identity.sdk.core.models.Profile
val authToken: AuthToken = // The authentication token obtained from login or signup.
client.startMfaEmailRegistration(
authToken = authToken,
redirectUri = "reachfive-${clientId}://callback",
success = { _ -> ... }, // Do something
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 where the user will be redirected after the passwordless success. Default value is |
|||||||||||||||||
Callback called once the request has succeeded. |
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.
|