B2BOAuthProviderDiscoveryClient
interface B2BOAuthProviderDiscoveryClient
Discovery OAuth start for a single provider — returns discovered organizations instead of a session.
Functions
Link copied to clipboard
abstract suspend fun start(parameters: B2BOAuthDiscoveryStartParameters): B2BOAuthDiscoveryAuthenticateResponse
Initiates a discovery OAuth browser flow for the provider, allowing the user to enumerate organizations before authenticating. Opens a browser session at https://{domain}/b2b/public/oauth/{provider}/discovery/start, then automatically calls POST /sdk/v1/b2b/oauth/discovery/authenticate, returning discovered organizations and an intermediate session token.