Next.js Starters & Boilerplates

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
  1. The short version
  2. How we researched this
  3. What you are actually choosing
  4. 1. Clerk — the hosted, component-led option
  5. 2. Better Auth — the new library default
  6. 3. Supabase Auth — the platform option
  7. 4. Auth.js — the incumbent, now in maintenance
  8. 5. Self-built — and what happened to Lucia
  9. The auth decision table
  10. Matching the option to the situation
  11. The mistakes to avoid
  12. 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:

Pros:

Cons:

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:

Pros:

Cons:

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:

Pros:

Cons:

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:

Pros:

Cons:

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.

Related guides

Next.js Starters & Boilerplates

Free Database for a Next.js or Astro Project: Supabase vs Neon vs Turso

Five database options checked against their own pricing pages in November 2026: Supabase, Neon, Turso and Cloudflare D1 free tiers compared on the limits that decide a project — plus PlanetScale, whose free tier no longer exists.

13 min read