B2BTOTPClient

interface B2BTOTPClient

TOTP (time-based one-time passcode) MFA methods for B2B members.

Functions

Link copied to clipboard
abstract suspend fun authenticate(request: IB2BTOTPsAuthenticateParameters): B2BTOTPsAuthenticateResponse

Authenticates a TOTP code from the member's authenticator app, completing the MFA step. Calls the POST /sdk/v1/b2b/totp/authenticate endpoint. Automatically includes the intermediate session token if one is present.

Link copied to clipboard
abstract suspend fun create(request: IB2BTOTPsCreateParameters): B2BTOTPsCreateResponse

Creates a new TOTP instance for the current member and returns the secret, QR code URL, and recovery codes. Calls the POST /sdk/v1/b2b/totp endpoint. Automatically includes the intermediate session token if one is present. The member should scan the QR code with their authenticator app, then call authenticate to verify setup.