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
Last updated on