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
Name | Type | Description |
---|---|---|
sessionId | string | The ID of the session to revoke. |