revoke
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()Content copied to clipboard
iOS:
let response = try await StytchB2B.sessions.revoke()Content copied to clipboard
React Native:
StytchB2B.sessions.revoke()Content copied to clipboard
Return
B2BSessionsRevokeResponse confirming the session was revoked.
Throws
StytchError
if the request fails.
if the coroutine is cancelled.