startPasswordReset

abstract suspend fun startPasswordReset(username: String, reCaptchaToken: String): NativeLoginResult

Submits a request to start a password reset to the Salesforce Identity API headless forgot password flow. This fulfills step one of the headless forgot password flow.

See https://help.salesforce.com/s/articleView?id=sf.remoteaccess_headless_forgot_password_flow.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

username

A valid Salesforce username or email

reCaptchaToken

A reCAPTCHA token provided by the reCAPTCHA SDK