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);
Required parameters
Name | Type | Description |
---|---|---|
sessionId | string | The ID of the session to retrieve. |