New advertisers: 50% off your first month with code FIRSTMONTHSee slots
neondatabase avatar

Neon Auth

Authentication skill that defaults to Neon's Managed Better Auth, with guardrails for migrations and existing identity providers.

skills.sh installs
40.4K
GitHub stars
118
last updated
Nov 22, 2026
View on GitHub

What it does

  • Covers identity routing, sign-up, sign-in, password reset, email OTP, magic links, organizations, passkeys, MFA, and OAuth server setup for MCP clients
  • Designed for new apps with no existing identity, and for migrating from Supabase Auth to Managed Better Auth
  • Keeps working Better Auth, Clerk, Supabase Auth, or other providers unless the user explicitly asks to migrate
  • Enforces Managed Auth prerequisites: AWS-only regions, no IP Allow or Private Networking, and configuration through neon.ts or neon neon-auth

Install

$ npx -y skills add neondatabase/agent-skills --skill neon-auth -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

FIRST: Use the parent neon skill for a Neon overview, getting started with Neon, Neon development best practices, and more.

If the neon skill is not installed, fetch it from https://neon.com/docs/ai/skills/neon/SKILL.md or install it with:

neon skills -s neon -y

Neon Auth

Neon Auth is Managed Better Auth: users, sessions, and auth config live in the neon_auth schema on the branch's Lakebase Postgres, and auth state branches with the database. The client API is the Better Auth method set (signIn.email, signIn.social, getSession) through @neon/auth. That wrapper is not a drop-in for bare better-auth/client: it pins the plugin list and adds Neon-specific OAuth verifier, iframe popup, and JWT handling. Stay on the wrapper while Auth is managed.

This skill chooses identity, then implements Managed Better Auth. It does not replace a working auth server in order to use Postgres, Functions, Object Storage, or the AI Gateway.

When to Use

Inspect existing identity and the required login features before provisioning. A supplied DATABASE_URL is not a reason to change identity. Adding a Neon Function is not a reason to change identity.

Details

Repository
github.com/neondatabase/agent-skills
Categories
Backend & APIs, Security
First seen
Nov 22, 2026

More from neondatabase/agent-skills

All 8

Similar to Neon Auth

More Backend & APIs