Clerk Client
@theholocron/clerk-client is a typed wrapper around the Clerk backend API for managing users, instances, and webhooks.
Installation
Section titled “Installation”pnpm add @theholocron/clerk-clientimport { createClerkClient } from "@theholocron/clerk-client";
const client = createClerkClient({ token: process.env.CLERK_SECRET_KEY });
const users = await client.users.list();const user = await client.users.get("user_abc123");await client.users.ban("user_abc123");Namespaces
Section titled “Namespaces”| Namespace | Covers |
|---|---|
instance |
The Clerk instance |
users |
Listing, counting, creating, updating and deleting users, and banning or locking them |
webhooks |
The Svix app behind Clerk’s webhooks |
The full API reference is generated from the package’s TSDoc comments.