revokeSession()
Verifies whether a session with a given ID corresponds to the provided session token. Throws an error if the provided ID is invalid.
const sessionId = 'my-session-id';
const token = 'my-session-token';
const session = await clerkClient.sessions.verifySession(sessionId, token);
Required parameters
Name | Type | Description |
---|---|---|
sessionId | string | The ID of the session to verify. |
token | string | The token of the session to verify with. |