B2BEmailOtpDiscoveryClient

Email OTP discovery methods for enumerating organizations before authentication.

Functions

Link copied to clipboard
abstract suspend fun authenticate(request: IB2BOTPsEmailDiscoveryAuthenticateParameters): B2BOTPsEmailDiscoveryAuthenticateResponse

Authenticates the discovery email OTP, returning an intermediate session token and the list of discovered organizations. Calls the POST /sdk/v1/b2b/otps/email/discovery/authenticate endpoint.

Link copied to clipboard
abstract suspend fun send(request: IB2BOTPsEmailDiscoverySendParameters): B2BOTPsEmailDiscoverySendResponse

Sends a discovery email OTP to enumerate the organizations associated with the given email address. Calls the POST /sdk/v1/b2b/otps/email/discovery/send endpoint.