neon-auth-nextjs
Installation
SKILL.md
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 setup (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/cssOR/ui/tailwind, never both - onSessionChange: Always call
router.refresh()to update Server Components