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,370
npm downloads a week
7.8Mup 14% on the week before
Latest release
[email protected]…2 months ago
Releases in 90 days
4about 1 a month

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.

02M4M6M8MOctDecJanMarMayJulOct7 October 2025: 1,931,719 downloads a week14 October 2025: 1,978,194 downloads a week21 October 2025: 2,064,142 downloads a week28 October 2025: 2,115,990 downloads a week4 November 2025: 2,287,552 downloads a week11 November 2025: 2,256,525 downloads a week18 November 2025: 2,201,153 downloads a week25 November 2025: 2,233,512 downloads a week2 December 2025: 1,987,738 downloads a week9 December 2025: 2,441,831 downloads a week16 December 2025: 2,313,370 downloads a week23 December 2025: 1,968,041 downloads a week30 December 2025: 1,288,039 downloads a week6 January 2026: 1,560,351 downloads a week13 January 2026: 2,150,528 downloads a week20 January 2026: 2,236,344 downloads a week27 January 2026: 2,340,093 downloads a week3 February 2026: 2,483,843 downloads a week10 February 2026: 2,533,272 downloads a week17 February 2026: 2,560,093 downloads a week24 February 2026: 3,948,954 downloads a week3 March 2026: 3,247,385 downloads a week10 March 2026: 3,360,645 downloads a week17 March 2026: 3,216,314 downloads a week24 March 2026: 3,110,999 downloads a week31 March 2026: 3,305,256 downloads a week7 April 2026: 3,213,907 downloads a week14 April 2026: 3,571,900 downloads a week21 April 2026: 3,659,274 downloads a week28 April 2026: 3,814,762 downloads a week5 May 2026: 3,711,393 downloads a week12 May 2026: 4,174,258 downloads a week19 May 2026: 4,296,498 downloads a week26 May 2026: 4,258,927 downloads a week2 June 2026: 4,610,703 downloads a week9 June 2026: 4,537,743 downloads a week16 June 2026: 4,769,522 downloads a week23 June 2026: 5,023,228 downloads a week7 July 2026: 4,864,150 downloads a week21 July 2026: 5,218,818 downloads a week28 July 2026: 5,680,611 downloads a week4 August 2026: 5,748,815 downloads a week11 August 2026: 5,812,999 downloads a week25 August 2026: 5,865,070 downloads a week1 September 2026: 6,088,248 downloads a week27 September 2026: 6,851,369 downloads a week4 October 2026: 7,790,366 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