Docs

You are viewing an archived version of the docs.Go to latest version

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);
  • Name
    sessionId
    Type
    string
    Description

    The ID of the session to revoke.

Feedback

What did you think of this content?

Last updated on