@clerk/nuxt
3.1.24 · 14 Nov 2026MIT36.2k / weekRepositoryHomepagenpmAtom feed
Your version
2.6.23 is the newest release of 2.x.
In short
1 deprecated3 internal
- Deprecated
Deprecate
createRouteMatcher()in favor of Nuxt's native route matching.
Release note
Patch Changes
- Deprecated
Deprecate
createRouteMatcher()in favor of Nuxt's native route matching.To protect API routes, match paths natively inside
clerkMiddleware():export default clerkMiddleware(event => { const { isAuthenticated } = event.context.auth(); const { pathname } = getRequestURL(event); if (!isAuthenticated && pathname.startsWith('/api/admin')) { throw createError({ statusCode: 401, statusMessage: 'Unauthorized' }); } });To protect pages, use Nuxt's built-in route middleware with
definePageMeta({ middleware: 'auth' }).
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.