@clerk/backend
Server-side authentication SDK for Clerk, with token verification, user retrieval, and session management without a browser.
Official Documentation ↗v3.26.6. Check the official docs for the latest API surface.Installation
npm install @clerk/backendMethods
No methods match this filter.
@clerk/backend is server-side authentication sdk for clerk, with token verification, user retrieval, and session management without a browser. This page documents the core methods, installation, and common usage patterns for the current stable release.
Installation
Install @clerk/backend with your preferred package manager using the command shown in the frontmatter. The package is published to the npm registry and ships with TypeScript types where applicable.
Core methods
The methods listed in the frontmatter cover the primary API surface. Each signature reflects the v1.2 release. Consult the official documentation linked in sourceUrl for advanced options, edge cases, and breaking changes between major versions.
Frequently asked questions
The faq section in the frontmatter answers the most common questions about @clerk/backend, including comparisons with alternatives, configuration tips, and runtime requirements. If your question is not covered, check the source URL for the full guide.
Errors
The following points are quoted verbatim from the official documentation. 来源:https://clerk.com/docs/references/backend/overview · 取证方式:HTTP GET 官方 README/文档页(HTML 去标签) · 抓取时间:2026-11-07T13:48:50.600Z. Any error type, throw condition or recovery step not stated there is left unspecified; this page does not infer exception classes or return values.
- Without Testing Tokens, you may encounter “Bot traffic detected” errors in your requests. (https://clerk.com/docs/references/backend/overview)
- Error handling The clerkClient methods throw errors ( ClerkAPIResponseError ) when something goes wrong. (https://clerk.com/docs/references/backend/overview)
Security notes
Quoted verbatim from the official documentation; this is not a complete threat model. 来源:https://clerk.com/docs/references/backend/overview · 取证方式:HTTP GET 官方 README/文档页(HTML 去标签) · 抓取时间:2026-11-07T13:48:50.600Z.
- To instantiate a clerkClient instance, you must call createClerkClient() and pass in your Clerk Secret Key . (https://clerk.com/docs/references/backend/overview)
- Name secretKey (required) Type string Description Your Clerk Secret Key . (https://clerk.com/docs/references/backend/overview)
- In these contexts, Clerk ensures that security-critical nonces are passed only to the whitelisted URLs. (https://clerk.com/docs/references/backend/overview)
FAQ
- Can I use it without Express?
- Yes. It is framework-agnostic; integrate with any Node.js or edge runtime.
- Does it support multi-tenant?
- Yes. Organizations and memberships are first-class; filter users by organizationId.
- How does token verification work?
- It fetches JWKS from Clerk and verifies the JWT signature and claims locally.
Report a problem with this API docOpens a pre-filled issue on GitHub.