Neon Auth is the official skill from Neon for authentication on Neon. Neon Auth is Managed Better Auth: users, sessions and auth settings live in a neon_auth schema in the branch's Postgres database, so auth state branches with the data and can be queried with SQL and used with row-level security. The client API is Better Auth's method set through the @neon/auth wrapper.
The skill first decides whether to change identity at all. With no existing auth it defaults to Managed Better Auth; a working Better Auth, Clerk, Auth.js or Supabase Auth setup is kept unless the user asks to migrate; and a feature Managed Auth lacks leads to self-managed Better Auth on the existing host or a Neon Function. Managed setup is auth: true in neon.ts followed by neon deploy, after confirming the project is on AWS without IP Allow or Private Networking. A dated plugin matrix shows what Managed Auth supports: email and password, social OAuth (Google, GitHub, Microsoft, Vercel, Apple, Discord), email OTP, magic links, admin, JWT, phone numbers with constraints, organizations in beta, and acting as the OAuth 2.1 server for your own MCP server; MFA is on the roadmap, and passkeys, API keys, generic OAuth and SSO need the self-managed path.
Further sections cover bringing your own Apple, Microsoft and Discord OAuth credentials (including Microsoft's email-verification claims), the trusted-domain allowlist behind "invalid domain" errors, the limits of migrating from Supabase Auth (password hashes do not transfer), and a verification list for sign-up, sign-in, sign-out and session restore. It expects Neon's parent neon skill and the Neon CLI. Apache-2.0.