Authentication · for Next.js

Authentication for Next.js

Among 191 makers' products we track that are built with Next.js, here's what they chose for authentication — each counted from a live-product source.

Hosted service or library in your own app. Hosted services give you UI, MFA and security updates for a monthly bill and some lock-in; libraries keep users in your own database for free, and you own the upkeep.

What makers on Next.js chose

Counts are live products with a source, not market share; a product using two options counts in both.

ClerkHosted service
llms.txtMCPCLIIn Replit

Best forDropping prebuilt sign-in, profile and organization UI into a React or Next.js app.

Trade-offPer-user pricing grows with you; users live in Clerk, not your database.

158 of the 191 Next.js products here · free tier

WorkOSHosted service
llms.txtMCP

Best forB2B SaaS that will need enterprise SSO and directory sync.

Trade-offIts free tier covers basic sign-in, but enterprise SSO and directory sync are priced per connection — worth it once a customer pays for them.

10 of the 191 Next.js products here · free tier

Auth0Hosted service
llms.txtMCP

Best forComplex identity needs and enterprise compliance.

Trade-offHeavier to configure and pricier than newer options for a solo project.

6 of the 191 Next.js products here · free tier

SupabaseBundled with your backend
llms.txtMCPCLIIn Bolt, Lovable, v0

Best forApps already on Supabase — auth is part of the same project as the database.

Trade-offLess polished UI components than dedicated auth services.

5 of the 191 Next.js products here · free tier · open source

Better AuthLibrary in your app
llms.txt

Best forTypeScript apps that want users and sessions in their own database, at no cost.

Trade-offYou host it and keep it patched; UI is yours to build.

5 of the 191 Next.js products here · free tier · open source

KindeHosted service
llms.txtCLI

Best forAuth that also covers feature flags and organizations in one place.

2 of the 191 Next.js products here · free tier

PropelAuthHosted service
llms.txtCLI

Best forB2B products where every customer is an organization with members, roles, invites and SAML.

Trade-offPaid plans start well above hobby budgets once you pass the free tier; users live in PropelAuth, not your database.

2 of the 191 Next.js products here · free tier

FirebaseBundled with your backend
llms.txtIn Lovable

Best forMobile and client-heavy apps already using Firebase.

Trade-offTies your user model to Google's ecosystem.

1 of the 191 Next.js products here · free tier

Hexclave (Stack Auth)Open-source service
llms.txtCLI

Best forA Clerk-style developer experience you can also self-host.

Trade-offYounger ecosystem than the incumbents.

1 of the 191 Next.js products here · free tier · open source

StytchHosted service
llms.txt

Best forPasswordless sign-in (magic links, one-time codes, passkeys) and B2B SSO through APIs, free up to 10,000 monthly active users.

Trade-offNow part of Twilio, which says nothing changes for now; overage prices aren't published, and users live in Stytch, not your database.

1 of the 191 Next.js products here · free tier

LogtoOpen-source service
llms.txtCLI

Best forOpen-source OIDC auth with hosted sign-in pages, organizations and roles, on a cloud with 50,000 free monthly active users or on your own servers.

Trade-offRuns as a separate auth server your app redirects to, rather than components inside your pages; smaller community than the incumbents.

1 of the 191 Next.js products here · free tier · open source