Sets up Neon Auth for your application. Configures authentication, creates auth routes, and generates UI components. Use when adding authentication to Next.js, React SPA, or Node.js projects.
/plugin marketplace add neondatabase/ai-rules/plugin install neon-plugin@neonThis skill is limited to using the following tools:
guides/nextjs-setup.mdguides/react-spa-setup.mdtemplates/auth-client.tstemplates/nextjs-api-route.tsAdd authentication to your application.
Package: @neondatabase/auth (auth only, smaller bundle)
Need database queries too? Use the neon-js skill instead for @neondatabase/neon-js with unified auth + data API.
When generating TypeScript/JavaScript code, follow these rules:
Complete reference: See Code Generation Rules for:
Key points:
tsconfig.json for path aliases before generating importsBetterAuthReactAdapter MUST be imported from auth/react/adapters subpath()Each guide is a complete, self-contained walkthrough with numbered phases:
guides/nextjs-setup.md - Complete Next.js App Router setup guideguides/react-spa-setup.md - Detailed React SPA guide with react-router-dom integrationI'll automatically detect your context (package manager, framework, existing setup) and select the appropriate guide based on your request.
For troubleshooting, see the Troubleshooting Guide in references.
Tell me what you're building - I'll handle the rest:
Primary Resource: See neon-auth.mdc for comprehensive guidelines including:
Framework-Specific Setup (choose your framework):
Framework-Specific UI (choose your framework):
Shared References:
templates/nextjs-api-route.ts - API route handler for Next.jstemplates/auth-client.ts - Client-side auth configurationI will:
Ready to get started? Just describe what you're building!