getConnections

abstract suspend fun getConnections(): B2BGetSSOConnectionsResponse

Returns all SSO connections (SAML, OIDC, and external) configured for the organization. Calls the GET /sdk/v1/b2b/sso endpoint. Requires an active session.

Kotlin:

val response = StytchB2B.sso.getConnections()

iOS:

let response = try await StytchB2B.sso.getConnections()

React Native:

StytchB2B.sso.getConnections()

Return

B2BGetSSOConnectionsResponse containing all SSO connections for the organization.

Throws

StytchError

if the request fails or no active session exists.

if the coroutine is cancelled.