B2BDiscoveryPasswordsClient

Password authentication and reset within the discovery flow (before an org is selected).

Functions

Link copied to clipboard
abstract suspend fun authenticate(request: IB2BPasswordDiscoveryAuthenticateParameters): B2BPasswordDiscoveryAuthenticateResponse

Authenticates an email and password credential during the cross-org discovery flow, before an organization is selected. Calls the POST /sdk/v1/b2b/passwords/discovery/authenticate endpoint. Returns discovered organizations and an intermediate session token; call B2BDiscoveryIntermediateSessionsClient.exchange to establish a full member session.

Link copied to clipboard
abstract suspend fun reset(request: IB2BDiscoveryPasswordResetParameters): B2BDiscoveryPasswordResetResponse

Completes the password reset in the cross-org discovery flow using the token from the reset email. Calls the POST /sdk/v1/b2b/passwords/discovery/reset endpoint. Retrieves the PKCE code verifier stored during the resetStart call.

Link copied to clipboard
abstract suspend fun resetStart(request: IB2BDiscoveryPasswordResetStartParameters): B2BDiscoveryPasswordResetStartResponse

Sends a password reset email to the specified address for use in the cross-org discovery flow. Calls the POST /sdk/v1/b2b/passwords/discovery/reset/start endpoint. Stores a PKCE code challenge for verification when reset is called.