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,372−2 in the last 30 days
npm downloads a week
7.8Mup 11% 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

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

02M4M6M8MSepNovJanMarMayJulOct24 September 2025: 1,908,680 downloads a week1 October 2025: 1,971,857 downloads a week8 October 2025: 1,929,934 downloads a week15 October 2025: 1,981,101 downloads a week22 October 2025: 2,089,891 downloads a week29 October 2025: 2,140,672 downloads a week5 November 2025: 2,281,008 downloads a week12 November 2025: 2,258,555 downloads a week19 November 2025: 2,239,762 downloads a week26 November 2025: 2,172,341 downloads a week3 December 2025: 2,021,295 downloads a week10 December 2025: 2,440,070 downloads a week17 December 2025: 2,304,487 downloads a week24 December 2025: 1,791,794 downloads a week31 December 2025: 1,262,888 downloads a week7 January 2026: 1,725,315 downloads a week14 January 2026: 2,179,220 downloads a week21 January 2026: 2,250,642 downloads a week28 January 2026: 2,375,463 downloads a week4 February 2026: 2,481,000 downloads a week11 February 2026: 2,544,586 downloads a week18 February 2026: 2,583,372 downloads a week25 February 2026: 4,033,023 downloads a week4 March 2026: 3,316,063 downloads a week11 March 2026: 3,293,649 downloads a week18 March 2026: 3,195,600 downloads a week25 March 2026: 3,133,779 downloads a week1 April 2026: 3,326,930 downloads a week8 April 2026: 3,234,575 downloads a week15 April 2026: 3,583,520 downloads a week22 April 2026: 3,680,077 downloads a week29 April 2026: 3,853,001 downloads a week6 May 2026: 3,720,421 downloads a week13 May 2026: 4,224,931 downloads a week20 May 2026: 4,336,364 downloads a week27 May 2026: 4,243,516 downloads a week3 June 2026: 4,639,935 downloads a week10 June 2026: 4,547,431 downloads a week17 June 2026: 4,786,068 downloads a week24 June 2026: 5,024,618 downloads a week1 July 2026: 4,722,351 downloads a week8 July 2026: 4,957,674 downloads a week22 July 2026: 5,314,657 downloads a week29 July 2026: 5,666,919 downloads a week5 August 2026: 5,802,508 downloads a week12 August 2026: 5,831,969 downloads a week26 August 2026: 5,893,743 downloads a week2 September 2026: 6,293,204 downloads a week28 September 2026: 7,047,207 downloads a week5 October 2026: 7,796,973 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