neon-auth-nextjs
Sets up Neon Auth in Next.js App Router applications. Configures API routes, middleware, server components, and UI. Use when adding auth-only to Next.js apps (no database needed).
Install
git clone https://github.com/neondatabase/neon-js /tmp/neon-js && ln -s /tmp/neon-js/skills/neon-auth-nextjs ~/.claude/skills/neon-auth-nextjs
From README
Neon Auth for Next.js Help developers set up @neondatabase/auth in Next.js App Router applications (auth only, no database). When to Use Use this skill when: Setting up Neon Auth in Next.js (App Router) User mentions "next.js", "next", or "app router" with Neon Auth Auth-only (no database needed) Critical Rules Server vs Client imports: Use correct import paths 'use client' directive: Required for client components using hooks CSS Import: Choose ONE - either /ui/css OR /ui/tailwind, never both onSessionChange: Always call router.refresh() to update Server Components Critical Imports | Purpose | Import From | |---------|-------------| | Unified Server (createNeonAuth) | @neondatabase/auth/next/server | | Client Auth | @neondatabase/auth/next | | UI Components | @neondatabase/auth/react/ui | | View Paths (static params) | @neondatabase/auth/react/ui/server | Note: Use createNeonAuth() from @neondatabase/auth/next/server to get a unified auth instance that provides: .handler() - API...
