startRegistration
abstract suspend fun startRegistration(email: String, firstName: String, lastName: String, username: String, newPassword: String, reCaptchaToken: String, otpVerificationMethod: OtpVerificationMethod): NativeLoginManager.StartRegistrationResult
Submits a request to start a user registration to the Salesforce Identity API headless registration flow. This fulfills step four of the headless registration flow.
See https://help.salesforce.com/s/articleView?id=sf.remoteaccess_headless_registration_public_clients.htm&type=5
Return
The start registration result with the request identifier returned by the Salesforce Identity API and a native login result indicating success or one of several possible failures, including both in-app and Salesforce Identity API results
Parameters
email
The user-entered email address
firstName
The user-entered first name
lastName
The user-entered last name
username
A valid Salesforce username or email
newPassword
The user-entered new password
reCaptchaToken
A reCAPTCHA token provided by the reCAPTCHA SDK
otpVerificationMethod
: The delivery method for the OTP