
Auth
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-codeInstalls 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 keyNEXT_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- Runtime Cache228
- Verification226
- Vercel Sandbox219
- Next Cache Components218
- Next Upgrade213
- Bootstrap211
- Marketplace208
- Vercel Plugin Eval206
- Plugin Audit198
- Benchmark Agents197
- Release194
- Benchmark Testing193
- Knowledge Update190
- Benchmark E2e187
- Benchmark Sandbox181
- Next Forge158
- Nextjs4.3K
- React Best Practices721
- Shadcn399
- Deployments Cicd333
- Turbopack310
- Ai Sdk278
- Vercel Cli272
- Routing Middleware264