list
abstract suspend fun list(request: IB2BDiscoveryOrganizationsParameters): B2BDiscoveryOrganizationsResponse
Lists all organizations discoverable for the authenticated user. Calls the POST /sdk/v1/b2b/discovery/organizations endpoint. Automatically includes the intermediate session token if one is present.
Kotlin:
val response = StytchB2B.discovery.organizations.list(B2BDiscoveryOrganizationsParameters())Content copied to clipboard
iOS:
let response = try await StytchB2B.discovery.organizations.list(B2BDiscoveryOrganizationsParameters())Content copied to clipboard
React Native:
StytchB2B.discovery.organizations.list({})Content copied to clipboard
Return
B2BDiscoveryOrganizationsResponse containing discoverable organizations.
Parameters
request
IB2BDiscoveryOrganizationsParameters — no fields required.
Throws
StytchError
if the request fails.
if the coroutine is cancelled.