B2BPasswordsEmailClient

Email-based password reset methods.

Functions

Link copied to clipboard
abstract suspend fun reset(request: IB2BPasswordEmailResetParameters): B2BPasswordEmailResetResponse

Completes the email password reset flow by setting a new password using the token from the reset link. Calls the POST /sdk/v1/b2b/passwords/email/reset endpoint. Retrieves the PKCE code verifier stored during the corresponding resetStart call, and automatically includes the intermediate session token if one is present.

Link copied to clipboard
abstract suspend fun resetStart(request: IB2BPasswordEmailResetStartParameters): B2BPasswordEmailResetStartResponse

Initiates an email-based password reset by sending a reset link to the member's email address. Calls the POST /sdk/v1/b2b/passwords/email/reset/start endpoint. Generates and stores a PKCE code pair for use in the subsequent reset call.