SaaS Auth Options Compared: Clerk, Better Auth, Supabase Auth, Auth.js and Rolling Your Own
17 October 2026 · Updated 28 November 2026 · 13 min read · by Yang Kai
Clerk, Better Auth, Supabase Auth, Auth.js and self-built auth compared for indie SaaS on cost model, control, lock-in and maintenance burden.
Table inside: Auth Decision Table for Indie SaaS
Contents
- The short version
- How we researched this
- What you are actually choosing
- 1. Clerk — the hosted, component-led option
- 2. Better Auth — the new library default
- 3. Supabase Auth — the platform option
- 4. Auth.js — the incumbent, now in maintenance
- 5. Self-built — and what happened to Lucia
- The auth decision table
- Matching the option to the situation
- The mistakes to avoid
- The verdict
Authentication looks like a solved problem until you price it, migrate it, or get the 2 a.m. message that password resets have stopped arriving. For an indie SaaS, the auth choice is one of the few early decisions that is genuinely expensive to reverse, because your users’ identities — and often their password hashes — live inside whichever system you pick.
The field also moved this year. The library most new TypeScript projects now start with was not the default two years ago, the old default changed maintainers and went into maintenance mode, and one popular library was deprecated by its own author. Any comparison written before those changes is quietly wrong.
This one is a criteria-based review of official sources — pricing pages, project announcements and documentation, checked in November 2026. There are no speed tests here, because auth performance is rarely what decides a small product’s fate. Cost shape, operational burden, control and exit cost decide it.
The short version
| Option | Best for | Pricing (checked Nov 2026) |
|---|---|---|
| Clerk | Teams and organisations fast, with prebuilt UI | Free to 50,000 retained users per app; Pro $25/mo |
| Better Auth | New TypeScript projects that want library control with hosted-level features | Free, MIT licence; your infrastructure |
| Supabase Auth | Products already built on Supabase | Free to 50,000 MAU; Pro $25/mo includes 100,000 MAU |
| Auth.js | Existing projects already running it | Free; maintenance mode since Sep 2025 |
| Self-built | Learning, or very small internal tools | Free; your time, most of all |
How we researched this
This is a desk-research comparison. Every price comes from the vendor’s own pricing page; every status claim — maintained, maintenance-only, deprecated — comes from the project’s own announcements. All checked in November 2026.
We did not run these systems in production for this article and there are no benchmarks to invent. The verdicts are judgements that follow from documented features, published pricing and project status — the same evidence available to you before you commit.
What you are actually choosing
Every option below gives you sign-up, sign-in and sessions. They differ in the surrounding machinery: email verification, password reset, social login, multi-factor authentication, organisation and team primitives, admin tooling, and where the user database physically lives.
They also differ in who is on call when something breaks. With a hosted provider, a broken login page is their incident. With a library in your own codebase, it is yours.
One more framing point: auth is a security surface, not just a feature. Whichever route you choose, the habits in the MCP security checklist — least privilege, secrets handled deliberately, no credentials in places they do not belong — apply just as much to your session configuration and API keys as they do to agent tooling. It is also one line item in a bigger decision: the starter must-have checklist puts auth alongside payments and email as the plumbing a starter must get right.
1. Clerk — the hosted, component-led option
Clerk is the option that removes the most work. You get polished prebuilt UI components, social login, organisation and team primitives aimed squarely at SaaS products, and an admin dashboard your future support self will appreciate.
Key features:
- Prebuilt sign-up, sign-in and user-profile components
- Organisations with roles and invitations built in
- Social login, magic links and MFA options
- Admin dashboard for user management and support tasks
- User data hosted on Clerk’s platform, synced to your app
Pros:
- Fastest route from zero to a complete auth lifecycle
- Organisation primitives remove real work for B2B products
- Operational burden is the lowest of any option here
Cons:
- User data lives outside your own database
- Leaving is the hardest of any option here — password hashes do not travel cleanly in every scenario
- The features most products eventually want sit on the paid plan
Pricing: Hobby is free up to 50,000 monthly retained users per app — Clerk counts a retained user as someone who returns at least a day after signing up, so one-off sign-ups cost nothing. Pro is $25 a month ($20 billed annually) with the same 50,000 included, then usage pricing per extra retained user; MFA and passkeys require Pro. Checked November 2026 on Clerk’s pricing page.
2. Better Auth — the new library default
Better Auth is the open-source library most new TypeScript projects now start with. It runs inside your application, stores users in your own database, and covers through plugins much of what used to require a hosted vendor: organisations, two-factor authentication, passkeys, even SSO and SCIM for enterprise customers.
Two facts from this year matter for the decision. In September 2025, maintenance of Auth.js transferred to the Better Auth team. In July 2026, Vercel acquired Better Auth — and the library remains free under the MIT licence. An optional paid infrastructure service (dashboards, abuse protection) exists alongside it, but the library itself is not metered per user.
Key features:
- Email/password, social login for dozens of providers, magic links
- Plugin system: organisations, two-factor, passkeys, SSO/SAML, SCIM
- Works across Next.js, Astro, SvelteKit, Nuxt and other TypeScript frameworks
- Users and sessions stored in your own database via your ORM
- No per-user pricing at any scale
Pros:
- Hosted-level feature coverage with library-level control and exit cost
- Actively developed, with the ecosystem’s momentum behind it
- Your user data never leaves your infrastructure
Cons:
- You operate it: updates, email delivery and incident response are yours
- A younger project than the incumbents, so its long-term shape is still being proven
- No compliance certifications or SLA come with a library — that responsibility stays with you
Pricing: Free, MIT-licensed. Your costs are your database and your time. Checked November 2026.
3. Supabase Auth — the platform option
Supabase Auth comes as part of the Supabase platform, which makes it most attractive when your database already lives there. User records sit in your Postgres database, and row-level security ties data access to identity in a way the other options do not match.
Key features:
- Email/password, social login, magic links and phone auth
- Row-level security policies keyed to the signed-in user
- User records in your own Postgres tables
- Pricing folded into the platform’s plans rather than a separate auth meter
- Admin API and user management in the Supabase dashboard
Pros:
- No second vendor if your stack is already Supabase
- Generous free allowance, and per-user overage is the cheapest listed here
- RLS makes authorisation a database concern, enforced everywhere
Cons:
- You are adopting an ecosystem, not just an auth tool
- The prebuilt UI story is thinner than Clerk’s; expect to build your own forms
- Advanced organisation patterns are things you model yourself on solid primitives
Pricing: Free plan includes 50,000 monthly active users. Pro is $25 a month per organisation and includes 100,000 monthly active users, then $0.00325 per extra user. Note the free plan’s platform limits too — free projects pause after a week of inactivity. Checked November 2026; the allowances are also broken out in the Supabase free tier entry.
4. Auth.js — the incumbent, now in maintenance
Auth.js (the successor to NextAuth) is the open-source library a generation of Next.js apps was built on. It lives in your codebase, works with your own database through adapters, supports many OAuth providers, and costs nothing in licence fees.
Its status is the story. Since September 2025, Auth.js has been maintained by the Better Auth team in what amounts to long-term maintenance — security patches rather than active feature development — and Better Auth publishes a migration path away from it.
Key features:
- Wide OAuth provider support
- Database adapters for common ORMs
- Framework packages beyond Next.js
- A decade of tutorials, answers and prior art to search
Pros:
- Free, proven, and already running in a huge number of products
- If your app already uses it, nothing forces a rushed migration
- Control and exit cost are as good as any library’s
Cons:
- Not the greenfield pick any more — you would be starting on the maintenance branch
- Email-based flows lean on your own email provider and configuration
- Edge cases its documentation gestures at become your edge cases
Pricing: Free. Your infrastructure and your time. Status checked November 2026 against the project’s own announcements.
5. Self-built — and what happened to Lucia
Rolling your own means implementing sessions and tokens yourself: password hashing, session invalidation, token rotation and every subtle failure mode, personally.
This route used to have a middle option. Lucia was the library that taught the pattern while handling the repetitive parts — until its author deprecated it in March 2025 and turned the project into a learning resource. The Lucia repository now ships a single reference file of session code to copy and own, and its author points people who want a library to Better Auth instead.
That history is the honest summary of the self-built route. The core of database-backed sessions is a few hundred lines. The cost is not writing them; it is owning them forever, including the parts you do not yet know you got wrong.
Pricing: Free, and the most expensive option on this page measured in attention.
The auth decision table
| Criterion | Clerk | Better Auth | Supabase Auth | Auth.js | Self-built |
|---|---|---|---|---|---|
| Where users live | Clerk’s platform | Your database | Your Supabase Postgres | Your database | Your database |
| Cost model | Free to 50k retained users; Pro $25/mo, then usage | Free library; your infra | In platform tiers; 100k MAU in Pro | Free library; your infra and time | Free; your time, most of all |
| Prebuilt UI | Strong | Minimal; mostly yours | Basic building blocks | Minimal; mostly yours | None |
| Organisations/teams | Built-in primitives | Plugin, built in | Model it yourself on primitives | Model it yourself | Build it yourself |
| MFA and social login | Included (MFA on Pro) | Plugins included | Included | Via providers/configuration | Your implementation |
| Operational burden | Lowest | Medium | Low–medium | Medium | Highest |
| Project status | Active | Active | Active | Maintenance mode | Yours to maintain |
| Leaving later | Hardest | Easiest with the code | Moderate | Easiest with the code | Nothing to leave, everything to maintain |
Read the table by your constraints, not by totals. There is no column that wins, because the columns are optimising for different builders.
Matching the option to the situation
If your product has organisations on the roadmap and you want to move fast, Clerk’s primitives remove real work — the same reason team-shaped products gravitate to team-shaped starters in the Next.js starter decision guide. Kits built around the Clerk path, and around each option here, are scored side by side in the ShipFast, Makerkit and supastarter comparison.
If you are starting fresh in TypeScript and want to keep users in your own database without giving up organisations or passkeys, Better Auth is the current default — it is also the auth layer several current starters have standardised on, as the boilerplate criteria guide notes when scoring stack fit.
If your stack is already Supabase-centred, adding a separate auth vendor usually makes less sense than using the platform’s own auth and its row-level security model; kits built around that path, such as supastarter’s Supabase configuration, exist precisely because the combination is common.
Also consider the shape of the product itself. A content-led site with a small account area has different auth needs from a pure app, which is part of the broader Astro versus Next.js trade-off for SaaS-shaped products — the framework decision and the auth decision are cousins, and making them together produces a calmer architecture than making either alone. Where the users live also depends on the database choice underneath, since three of the five options store identity in a database you run.
The mistakes to avoid
The commonest is choosing on the login demo and ignoring account recovery, because reset and verification emails are where users actually get stuck. Test the full lifecycle — sign-up, verification, reset, email change, deletion — before launch, in a real inbox, including spam folders.
The second mistake is deferring the organisations question: bolting team membership onto a user model that assumed solo accounts is the auth version of retrofitting multi-tenancy, and it is just as unfun.
The third is storing more identity data than you need; every field is a liability you maintain and a breach you would have to explain.
Whichever option you pick, write down — today, in your project notes — how you would leave it. Which data exports exist, what happens to sessions, what your users would experience. You will probably never run that plan. Knowing it exists turns a lock-in anxiety into a managed risk, and it takes twenty minutes while the system is still small enough to hold in your head.
FAQ
Which auth option is cheapest for an indie SaaS? In licence fees, Better Auth, Auth.js and self-built auth cost nothing; in time, self-built costs the most. Clerk is free to 50,000 retained users and Supabase Auth free to 50,000 monthly active users, both checked November 2026. The cheapest option is the one whose currency — money or hours — you have spare.
Should a new project still start on Auth.js? It works, and existing projects can stay on it safely. But it has been in maintenance mode under the Better Auth team since September 2025, so a greenfield TypeScript project is usually better served by Better Auth, which is where the active development — and the same maintainers — now are.
Can I migrate away from Clerk or Supabase Auth later? Yes, but user identities are the hard part: password hashes and provider-specific features do not always travel cleanly. Writing down your exit path while the system is small turns a potential crisis into a planned project.
Do I need organisations and teams in my auth from day one? Only if your product’s first-year roadmap genuinely has them. If it does, choose an option with those primitives built in — Clerk or Better Auth — because retrofitting team membership onto a solo user model is the auth mistake builders regret most.
What happened to Lucia? Its author deprecated the library in March 2025 and converted the project into a learning resource: the repository now offers a single reference file of session code to copy into your project. It is good teaching material and a reasonable pattern to study, but it is no longer a library to install for a new product.
The verdict
For most new indie SaaS products in late 2026, the decision is narrower than the five options suggest. Pick Clerk if organisations and speed matter more than data ownership. Pick Better Auth if you want the same feature coverage in your own database at no licence cost. Pick Supabase Auth if your product already lives on Supabase.
Keep Auth.js where it already runs, and treat self-built auth as a learning project rather than a product decision. Whichever you choose, decide the exit path while the system is small — that one habit is worth more than the difference between any two rows of the table.
Category: Next.js Starters & Boilerplates · Tags: #nextjs #databases #saas #comparison #pricing
Next step: this article is part of Next.js guides, which covers the full topic from first setup to advanced use.