revoke

abstract suspend fun revoke(): B2BSessionsRevokeResponse

Revokes the current member session, signing the member out on the backend and clearing local session state. Calls the POST /sdk/v1/b2b/sessions/revoke endpoint.

Kotlin:

StytchB2B.sessions.revoke()

iOS:

let response = try await StytchB2B.sessions.revoke()

React Native:

StytchB2B.sessions.revoke()

Return

B2BSessionsRevokeResponse confirming the session was revoked.

Throws

StytchError

if the request fails.

if the coroutine is cancelled.