dinaf2026-web/awesome-web-skills/web-auth
Claude Code and agent skill by dinaf2026-web/awesome-web-skills
- community
Checking that the SKILL.md file is still in the repository.
Next.js 14 App Router authentication patterns. Covers NextAuth v5, Clerk, and Supabase Auth end-to-end: setup, protected routes, RBAC, OAuth, session handling in Server and Client Components, UI state, and security rules.
Install
npx vskill@latest install dinaf2026-web/awesome-web-skills/web-authSKILL.md
The same SKILL.md was published earlier as dinaf2026-web/awesome-web-skills/web-auth.
web-auth — Next.js 14 App Router Authentication
1. Decision Table — NextAuth vs Clerk vs Supabase Auth
| Criterion | NextAuth v5 | Clerk | Supabase Auth | |
|---|---|---|---|---|
| Cost | Free (OSS) | Free tier; paid for orgs/MFA | Free tier; usage-based | |
| Setup time | Medium (~1 hr) | Fast (~20 min) | Medium (~45 min) | |
| UI components | None (bring your own) | Pre-built, customizable | None (bring your own) | |
| Database | Any via adapter | Clerk-managed | Supabase Postgres | |
| Row-Level Security | Manual | No | Native (RLS) | |
| Organizations / Teams | Manual | Built-in | Manual | |
| SSR / RSC support | Yes (v5) | Yes | Yes (SSR pkg) | |
| MFA / Passkeys | Manual | Built-in | Built-in | |
| Best for | Full control, custom DB | Rapid dev, B2B SaaS | Apps already on Supabase |
Pick NextAuth v5 when you own the database and need full control over the auth flow. Pick Clerk when you need org management, device sessions, or polished pre-built UI fast. Pick Supabase Auth when your data already lives in Supabase and you want RLS.
2. NextAuth v5 — Full Setup
Install
auth.ts — core config
TypeScript augmentation — add role and id to session
Route handler
Middleware
Login page with Server Action
Session in Server Component
Required env vars
3. Clerk — Middleware, Provider, Components, Hooks
Install
Middleware
Root layout — ClerkProvider
Pre-built auth pages
UserButton and navigation
Client hooks — useAuth / useUser
currentUser() in Server Components
Required env vars
4. Supabase Auth — SSR-Safe Clients, Middleware, Email, OAuth
Install
Server client — for Server Components and Route Handlers
Browser client — for Client Components
Middleware — refresh session on every request
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/web-auth/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dinaf2026-web/awesome-web-skills/web-auth)