submitOtpRequest
abstract suspend fun submitOtpRequest(username: String, reCaptchaToken: String, otpVerificationMethod: OtpVerificationMethod): OtpRequestResult
Submits a request to start password-less login via one-time-passcode to the Salesforce Identity API headless, password-less login flow. This fulfills step three of the headless, password-less login flow.
See https://help.salesforce.com/s/articleView?id=sf.remoteaccess_headless_passwordless_login_public_clients.htm&type=5
Return
An OTP request result with the overall login result and the OTP identifier for successful OTP requests
Parameters
username
A valid Salesforce username or email
reCaptchaToken
A reCAPTCHA token provided by the reCAPTCHA SDK
otpVerificationMethod
: The delivery method for the OTP