get

abstract suspend fun get(): B2BOrganizationsGetResponse

Fetches the current member's organization and its settings. Calls the GET /sdk/v1/b2b/organizations/me endpoint. Requires an active session.

Kotlin:

StytchB2B.organizations.get()

iOS:

let response = try await StytchB2B.organizations.get()

React Native:

StytchB2B.organizations.get()

Return

B2BOrganizationsGetResponse containing the organization object.

Throws

StytchError

if the request fails or no active session exists.

if the coroutine is cancelled.