revoke
Revokes the current session, signing the user out on the backend and clearing local session state. Calls the POST /sdk/v1/sessions/revoke endpoint.
Kotlin:
StytchConsumer.sessions.revoke()Content copied to clipboard
iOS:
let response = try await StytchConsumer.sessions.revoke()Content copied to clipboard
React Native:
StytchConsumer.sessions.revoke()Content copied to clipboard
Return
SessionsRevokeResponse confirming the session was revoked.
Throws
StytchError
if the request fails.
if the coroutine is cancelled.