B2BOAuthDiscoveryClient
interface B2BOAuthDiscoveryClient
Cross-provider OAuth discovery authentication — exchanges a discovery token for an intermediate session.
Functions
Link copied to clipboard
abstract suspend fun authenticate(request: IB2BOAuthDiscoveryAuthenticateParameters): B2BOAuthDiscoveryAuthenticateResponse
Authenticates a discovery OAuth token received via deeplink after a browser-based discovery OAuth flow completes. Calls the POST /sdk/v1/b2b/oauth/discovery/authenticate endpoint. Retrieves the PKCE code verifier stored during the B2BOAuthProviderDiscoveryClient.start call. Returns discovered organizations and an intermediate session token; call B2BDiscoveryIntermediateSessionsClient.exchange to establish a full member session.