---
title: "Meet the New Neon Auth: Branchable Identity in Your Database"
description: "Neon Auth has been rebuilt on Better Auth and now stores users, sessions, organizations and auth configuration in a neon_auth schema inside the Neon Postgres database."
url: "https://swe.quest/articles/meet-the-new-neon-auth-branchable-identity-in-your-database-be81a13634133bac"
canonical: "https://neon.com/blog/neon-auth-branchable-identity-in-your-database"
source: "Neon"
published: "2025-12-10"
difficulty: "easy"
kind: "Announcement"
reading_minutes: 8
tags: ["identity-auth","postgres","databases"]
---

# Meet the New Neon Auth: Branchable Identity in Your Database

A post on [Neon](https://swe.quest/sources/neon.md), published 2025-12-10, 8 min read, Announcement. Original: [https://neon.com/blog/neon-auth-branchable-identity-in-your-database](https://neon.com/blog/neon-auth-branchable-identity-in-your-database)

## Summary

Neon Auth has been rebuilt on Better Auth and now stores users, sessions, organizations and auth configuration in a neon\_auth schema inside the Neon Postgres database. This replaces the earlier external-provider setup that relied on webhook sync. Because identity lives in the database, auth state clones with every branch, and each branch gets its own isolated auth endpoint co-located with compute. RLS policies can reference the JWT user, and user creation plus role assignment can happen in one transaction. A unified neon-js SDK ties together Auth, the Data API and the database, though Neon Auth does not yet support custom Better Auth plugins or server-side handlers.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)

## Prerequisites

- Postgres row-level security ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- JWT-based authentication ([easy posts on Identity & auth](https://swe.quest/tags/identity-auth.md?difficulty=easy))

## Keywords

Neon, Neon Auth, Better Auth, neon-js, Neon Data API, Stack Auth

## Related posts

- [Handling Auth in a Staging Environment](https://swe.quest/articles/handling-auth-in-a-staging-environment-18efe1e68fa29994.md): Neon · 2026-01-10 · Medium · 7 min read · Identity & auth, PostgreSQL, CI/CD, Testing
  Neon Auth stores users, sessions and OAuth data in a neon\_auth schema inside the Postgres database, so branching the database also branches auth state via copy-on-write.
- [A Simple 3-Step Process to Migrate from Supabase Auth to Neon Auth](https://swe.quest/articles/a-simple-3-step-process-to-migrate-from-supabase-auth-to-neon-auth-4a39ae039de9e6ef.md): Neon · 2025-03-25 · Medium · 5 min read · Identity & auth, PostgreSQL, JavaScript
  Supabase Auth users can be moved to Neon Auth (built on Stack Auth) without forcing password resets by exporting bcrypt hashes in Modular Crypt Format and importing them through the Stack Auth REST API.
- [Stop Mocking Auth (It’s Breaking Your Tests)](https://swe.quest/articles/stop-mocking-auth-it-s-breaking-your-tests-f37ca9cbb9aaf394.md): Neon · 2025-12-29 · Medium · 8 min read · Testing, Identity & auth, PostgreSQL, CI/CD
  Mocking authentication in tests hides real failures: password hashing and verification, UNIQUE-constraint enforcement under concurrent signups, session handling, and SQL joins between auth and application data.
- [Database-per-User Architecture With Shared Application Environments: How and Why](https://swe.quest/articles/database-per-user-architecture-with-shared-application-environments-how-and-why-75dc31cab7b5ea77.md): Neon · 2024-10-18 · Medium · 8 min read · Multi-tenancy, PostgreSQL, System design, Schema migrations
  A single shared application environment serving many per-customer Neon Postgres databases keeps deployment simple, but every tenant database must stay at the same schema version and data residency is hard to offer.
- [Inside LuBot's database-per-tenant architecture](https://swe.quest/articles/inside-lubot-s-database-per-tenant-architecture-3e140bf0d5ffcd96.md): Neon · 2026-09-14 · Medium · 5 min read · Multi-tenancy, PostgreSQL, Serverless, System design
  LuBot, a solo-founder analytics chat product, gives each paying customer an isolated Postgres database by creating a Neon branch from a Stripe webhook, with Supabase kept as the control plane for orgs, users and billing.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
