me

abstract suspend fun me(): B2BGetMeResponse

Returns the currently authenticated member and their organization. Calls the GET /sdk/v1/b2b/organizations/members/me endpoint. Requires an active session.

Kotlin:

StytchB2B.members.me()

iOS:

let response = try await StytchB2B.members.me()

React Native:

StytchB2B.members.me()

Return

B2BGetMeResponse containing the current member and organization objects.

Throws

StytchError

if the request fails or no active session exists.

if the coroutine is cancelled.