Packages

@clerk/react-router

3.7.6 · 19 Nov 2026MIT135.5k / weekRepositoryHomepagenpmAtom feed

Your version

1.2.0

3 Apr 2025Where it was published

1.10.2 is the newest release of 1.x.

In short

1 new4 internal

Security

1 advisory affects 1.2.0; 2.4.13 fixes them

Release note

Minor Changes

  • Introduce a verifyWebhook() function to verify incoming Clerk webhook requests and process the payload. This function handles webhook signature verification using Svix and 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 React Router SDK:

    import { verifyWebhook } from '@clerk/react-router/webhooks';
    
    export const action = async ({ request }) => {
      try {
        const evt = await verifyWebhook(request);
    
        // 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:', evt.data);
    
        return new Response('Webhook received', { status: 200 });
      } catch (err) {
        console.log('Error: Could not verify webhook:', err);
        return new Response('Error: Verification error', {
          status: 400,
        });
      }
    };

    For more information on how to sync Clerk data to your app with webhooks, see our guide.

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.