completeRegistration
abstract suspend fun completeRegistration(otp: String, requestIdentifier: String, otpVerificationMethod: OtpVerificationMethod): NativeLoginResult
Submits a request to complete a user registration to the Salesforce Identity API headless registration flow. This fulfills step eight of the headless registration flow.
See https://help.salesforce.com/s/articleView?id=sf.remoteaccess_headless_registration_public_clients.htm&type=5
Return
A native login result indicating success or one of several possible failures, including both in-app and Salesforce Identity API results
Parameters
otp
A user-entered one-time-password
requestIdentifier
The request identifier issued by the Salesforce Identity API headless registration flow in the start registration method
otpVerificationMethod
The one-time-password verification method used to obtain the OTP identifier