Skip to content

NextAuth.js

NextAuth.js is an open source authentication library for JavaScript applications, particularly Next.js, handling sign-in with OAuth providers, email links, credentials and session management. Development stalled after it was renamed Auth.js and its main maintainer left in January 2025, leaving the project effectively unmaintained; Better Auth, a newer commercially backed authentication project, took over stewardship of Auth.js on 22 September 2025 to keep it receiving security patches while steering new users toward Better Auth itself.

By Auth.js open source project (stewarded by Better Auth)Open sourceSince 2016Auth

Facts checked on against the sources listed at the end of this page.

Newer version available. NextAuth.js was renamed Auth.js during a long-running v5 beta that began in 2023 and never reached a stable release; its main maintainer left in January 2025, leaving the project effectively unmaintained. On 22 September 2025, Better Auth, a newer commercially backed open source auth project, took over stewardship to keep Auth.js from being fully abandoned, providing security patches but recommending new projects use Better Auth instead. No forced migration is required for existing users.

Pricing
Open sourceFree plan: Yes, NextAuth.js / Auth.js is completely free
Open source
YesISC
GitHub stars
28,382+18 in the last 30 days
npm downloads a week
9.4Mflat on the week before
Latest release
[email protected]…3 months ago

A good fit for

  • Existing projects already using NextAuth.js that don't need to migrate immediately, since security patches continue
  • Learning how session-based and OAuth authentication works in a Next.js application
  • Small projects that want a free, self-hosted authentication library rather than a managed auth service

Not a good fit for

  • New projects starting fresh, where the project's own documentation now recommends Better Auth instead
  • Teams that need active feature development, given the project's maintenance has slowed significantly since early 2025
  • Anyone wanting a managed, hosted authentication service rather than a self-hosted library, where products like Clerk, Auth0 or WorkOS may fit better

NextAuth.js pricing

NextAuth.js / Auth.js is completely free and open source. There's no paid tier for the library itself.

Prices in USD, checked on 27 September 2026. Current prices on authjs.dev.

Main features

OAuth providers
Built-in support for signing in with Google, GitHub and many other OAuth providers.
Passwordless email sign-in
Magic-link style authentication via email.
Credentials provider
Custom username/password or other credential-based authentication.
Session management
Built-in session and JWT handling integrated with framework routing.
Framework adapters
Official support for Next.js, SvelteKit, Express and Qwik, among others.
Database adapters
Adapters for storing sessions and users in various databases.

About NextAuth.js

NextAuth.js provides authentication for JavaScript applications, most notably Next.js, supporting sign-in through OAuth providers (Google, GitHub and many others), passwordless email links, and custom credentials, along with session and JWT handling built into the framework's routing conventions.

The project was renamed Auth.js during a version 5 rewrite that began in 2023 but stayed in beta for years without reaching a stable release, and its main maintainer departed in January 2025, leaving development effectively stalled.

On 22 September 2025, Better Auth, a newer, commercially backed open source authentication library, took over stewardship of Auth.js to keep it from being fully abandoned. Auth.js continues to receive security patches, but its documentation now points new users toward Better Auth, positioning it as the practical successor; existing Auth.js users are not forced to migrate.

Made by
Auth.js open source project (stewarded by Better Auth)
Free plan
Yes, NextAuth.js / Auth.js is completely free
Available on
Next.js, React, SvelteKit, Express, Qwik

Usage and activity

GitHub stars, last 12 months. Updated 17 November 2026.

28.4k28.4k28.4k28.4k28.4kSepOctOctOctOctNovNovNov29 September 2026: 28,374 stars6 October 2026: 28,369 stars13 October 2026: 28,366 stars20 October 2026: 28,365 stars27 October 2026: 28,372 stars3 November 2026: 28,375 stars10 November 2026: 28,375 stars17 November 2026: 28,382 stars

Weekly npm downloads of next-auth, last 12 months.

02.5M5M7.5M10MOctDecFebAprJunAugNov19 October 2025: 1,991,382 downloads a week26 October 2025: 2,107,061 downloads a week2 November 2025: 2,285,871 downloads a week9 November 2025: 2,206,698 downloads a week16 November 2025: 2,246,798 downloads a week23 November 2025: 2,260,277 downloads a week30 November 2025: 1,969,025 downloads a week7 December 2025: 2,340,107 downloads a week14 December 2025: 2,369,127 downloads a week21 December 2025: 2,166,168 downloads a week28 December 2025: 1,399,329 downloads a week4 January 2026: 1,351,750 downloads a week11 January 2026: 2,089,083 downloads a week18 January 2026: 2,222,441 downloads a week25 January 2026: 2,282,392 downloads a week1 February 2026: 2,454,018 downloads a week8 February 2026: 2,524,712 downloads a week15 February 2026: 2,577,834 downloads a week22 February 2026: 3,522,984 downloads a week1 March 2026: 3,300,071 downloads a week8 March 2026: 3,413,206 downloads a week15 March 2026: 3,294,395 downloads a week22 March 2026: 3,119,100 downloads a week29 March 2026: 3,272,790 downloads a week5 April 2026: 3,227,707 downloads a week12 April 2026: 3,458,920 downloads a week19 April 2026: 3,617,951 downloads a week26 April 2026: 3,731,962 downloads a week3 May 2026: 3,801,192 downloads a week10 May 2026: 3,980,905 downloads a week17 May 2026: 4,246,501 downloads a week24 May 2026: 4,442,061 downloads a week31 May 2026: 4,338,289 downloads a week7 June 2026: 4,621,639 downloads a week14 June 2026: 4,658,859 downloads a week21 June 2026: 4,931,687 downloads a week28 June 2026: 4,922,700 downloads a week5 July 2026: 4,673,567 downloads a week12 July 2026: 5,241,130 downloads a week19 July 2026: 5,173,066 downloads a week26 July 2026: 5,577,497 downloads a week2 August 2026: 5,676,889 downloads a week9 August 2026: 5,809,284 downloads a week16 August 2026: 5,913,494 downloads a week23 August 2026: 5,741,637 downloads a week30 August 2026: 5,989,805 downloads a week6 September 2026: 6,759,070 downloads a week28 September 2026: 7,047,207 downloads a week5 October 2026: 7,796,973 downloads a week1 November 2026: 9,057,792 downloads a week8 November 2026: 9,384,259 downloads a week15 November 2026: 9,355,693 downloads a week

Recent releases

NextAuth.js alternatives

NextAuth.js compared

Questions about NextAuth.js

Is NextAuth.js still maintained?

It receives security patches under stewardship from the Better Auth team, but active feature development has slowed significantly since its main maintainer left in January 2025. New projects are generally pointed toward Better Auth instead.

What's the difference between NextAuth.js and Auth.js?

Auth.js is the renamed version of NextAuth.js from its version 5 rewrite, which began in 2023 and stayed in beta for years without a stable release.

Do I need to migrate away from NextAuth.js?

No, there's no forced migration. Existing projects continue to receive security patches, though the project's documentation recommends Better Auth for new projects.

Is NextAuth.js free?

Yes, it's completely free and open source.

Sources and links

Work on NextAuth.js? Claim this listing. Something wrong or out of date? Suggest a correction. Stats come from the public GitHub and npm APIs and update every day.

NextAuth.js: pricing, features and alternatives (2026) | ScratchDB