Skip to Content
Clerk logo

Clerk Docs

Ctrl + K
Go to clerk.com

revokeSession()

Revokes a session given its ID, if the ID is valid. Throws an error otherwise.

User will be signed out from the particular client the referred to.

const sessionId = 'my-session-id'; const session = await clerkClient.sessions.revokeSession(sessionId);

Required parameters

NameTypeDescription
sessionIdstringThe ID of the session to revoke.

Last updated on August 16, 2023

What did you think of this content?

Clerk © 2024