@clerk/backend
3.29.0 · 14 Nov 2026MIT8.4M / weekRepositoryHomepagenpmAtom feed
1.34.0 is the newest release of 1.x.
In short
3 new2 internal
Release note
Minor Changes
Expose
retryAftervalue onClerkAPIResponseErrorfor 429 responses.Introduce a
verifyWebhook()function to verify incoming Clerk webhook requests and process the payload. This function handles webhook signature verification usingSvixand is now available across all backend and fullstack SDKs.To get started, install
svix, which Clerk uses to verify its webhooks:npm install svix
Then in your webhook route handler, import
verifyWebhook()from the Backend SDK:// app/api/webhooks/route.ts import { verifyWebhook } from '@clerk/backend/webhooks'; try { const evt = await verifyWebhook(req); // Do something with payload const { id } = evt.data; const eventType = evt.type; console.log(`Received webhook with ID ${id} and event type of ${eventType}`); console.log('Webhook payload:', body); } catch (err) { console.error('Error: Could not verify webhook:', err); }For more information on how to sync Clerk data to your app with webhooks, see our guide.
Redirect to tasks on
auth.protectandauth.redirectToSignIn
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.