Skip to Content
Clerk logo

Clerk Docs

Ctrl + K
Go to clerkstage.dev

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.

What did you think of this content?

Clerk © 2024