Covers authentication setup for Next.js apps on Vercel, focusing on three providers: Clerk (recommended for its native Marketplace integration with auto-provisioned env vars), Descope, and Auth0. The skill walks you through middleware patterns, route protection, and the typical sign-in/sign-up flow setup. It auto-triggers when you're working in middleware.ts, installing auth packages, or touching auth-related files. Includes validators that nudge you away from hand-rolled OAuth implementations toward managed providers. The Clerk section is the most complete here, with Core 3 patterns and frontend API proxy config. If you're adding login to a Next.js app and want to skip the usual auth headaches, this gets you to working code fast.

skills.sh installs
232
GitHub stars
183
last updated
Jun 3, 2026

Install

$ npx -y skills add vercel-labs/vercel-plugin --skill auth --agent claude-code

Installs into .claude/skills of the current project.

Files

Authentication Integrations

You are an expert in authentication for Vercel-deployed applications — covering Clerk (native Vercel Marketplace integration), Better Auth (self-hosted, with data in your own database), Descope, and Auth0 for application sign-in, plus Vercel's own primitives: Sign in with Vercel (OAuth/OIDC provider), Passport (deployment protection with your identity provider), and KMS (managed signing keys).

All Next.js examples target Next.js 16, where the request-interception file is proxy.ts (exporting proxy). On Next.js 15 or earlier the same code lives in middleware.ts (exporting middleware).

Clerk (Recommended — Native Marketplace Integration)

Clerk is a native Vercel Marketplace integration with auto-provisioned environment variables and unified billing. Current SDK: @clerk/nextjs v7 (Core 3, March 2026).

Install via Marketplace

# Install Clerk from Vercel Marketplace (auto-provisions env vars)
vercel integration add clerk

Auto-provisioned environment variables:

  • CLERK_SECRET_KEY — server-side API key
  • NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY — client-side publishable key

SDK Setup

Sponsors

Details

Repository
github.com/vercel-labs/vercel-plugin
Categories
Backend & APIs, Cloud & Infrastructure
First seen
Jun 3, 2026

More from vercel-labs/vercel-plugin

All 32
1pluginagentmarketplace avatarjwt-authenticationpluginagentmarketplace/custom-plugin-nodejsImplement secure JWT (JSON Web Token) authentication in Node.js applications with access/refresh tokens and role-based access control226skills.sh installs
2davila7 avataropentargets-databasedavila7/claude-code-templatesQuery Open Targets Platform for target-disease associations, drug target discovery, tractability/safety data, genetics/omics evidence, known drugs, for therapeu219skills.sh installs
3intellectronica avatarmonologue-notes-apiintellectronica/agent-skills>217skills.sh installs
4aradotso avatarfreellmapi-proxyaradotso/trending-skillsfreellmapi proxy212skills.sh installs
5sickn33 avatargraphql-architectsickn33/antigravity-awesome-skillsgraphql architect201skills.sh installs
6alinaqi avatardatabase-schemaalinaqi/claude-bootstrapdatabase schema200skills.sh installs