B2BMagicLinksDiscoveryClient
interface B2BMagicLinksDiscoveryClient
Magic link discovery methods for listing organizations before a session is established.
Functions
Link copied to clipboard
abstract suspend fun authenticate(request: IB2BMagicLinksDiscoveryAuthenticateParameters): B2BMagicLinksDiscoveryAuthenticateResponse
Authenticates the discovery magic link token received via deeplink, returning an intermediate session token and the list of discovered organizations. Calls the POST /sdk/v1/b2b/magic_links/discovery/authenticate endpoint. Retrieves the PKCE code verifier stored during the corresponding emailSend call.
Link copied to clipboard
abstract suspend fun emailSend(request: IB2BMagicLinksDiscoveryEmailSendParameters): B2BMagicLinksDiscoveryEmailSendResponse
Sends a discovery magic link email to enumerate the organizations associated with the given email address. Calls the POST /sdk/v1/b2b/magic_links/email/discovery/send endpoint. Generates and stores a PKCE code pair for use in the subsequent authenticate call.