@clerk/nuxt
3.1.24 · 14 Nov 2026MIT36.2k / weekRepositoryHomepagenpmAtom feed
1.13.35 is the newest release of 1.x.
In short
1 deprecated1 new1 fixed4 internal
- Deprecated
Deprecate
event.context.authin favor ofevent.context.auth()as function
Security
2 advisories affect 1.5.0; 1.13.29 fixes them
- CriticalOfficial Clerk JavaScript SDKs: Middleware-based route protection bypassGHSA-vqx2-fgx2-5wq9 · 16 Apr 2026Fixed in 1.13.28
- HighClerk has an authorization bypass when combining organization, billing, or reverification checksGHSA-w24r-5266-9c3c · 30 Apr 2026Fixed in 1.13.29
Release note
Minor Changes
- Deprecated
Deprecate
event.context.authin favor ofevent.context.auth()as functionexport default clerkMiddleware((event) => { + const { userId } = event.context.auth() - const { userId } = event.context.auth const isAdminRoute = event.path.startsWith('/api/admin') if (!userId && isAdminRoute) { throw createError({ statusCode: 401, statusMessage: 'Unauthorized: User not signed in', }) } }) 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 Nuxt SDK:// server/api/webhooks.post.ts import { verifyWebhook } from '@clerk/nuxt/webhooks'; export default eventHandler(async event => { try { const evt = await verifyWebhook(event); // 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); return 'Webhook received'; } catch (err) { console.error('Error: Could not verify webhook:', err); setResponseStatus(event, 400); return 'Error: Verification error'; } });For more information on how to sync Clerk data to your app with webhooks, see our guide.
Patch Changes
Remove telemtry event from
clerkMiddleware().
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.