Docs

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

getSession()

Retrieves a single session by its ID, if the ID is valid. Throws an error otherwise.

const sessionId = 'my-session-id';

const session = await clerkClient.sessions.getSession(sessionId);
  • Name
    sessionId
    Type
    string
    Description

    The ID of the session to retrieve.

Feedback

What did you think of this content?

Last updated on