B2BEmailOtpClient

B2B email OTP methods.

Properties

Link copied to clipboard

Email OTP discovery methods for listing organizations before a session is established.

Functions

Link copied to clipboard
abstract suspend fun authenticate(request: IB2BOTPsEmailAuthenticateParameters): B2BOTPsEmailAuthenticateResponse

Authenticates an email OTP code submitted by the member, completing the authentication step. Calls the POST /sdk/v1/b2b/otps/email/authenticate endpoint. Automatically includes the intermediate session token if one is present.

Link copied to clipboard
abstract suspend fun loginOrSignup(request: IB2BOTPsEmailLoginOrSignupParameters): B2BOTPsEmailLoginOrSignupResponse

Sends an email OTP to the provided address for login or signup within the organization. Calls the POST /sdk/v1/b2b/otps/email/login_or_signup endpoint.