Auth.js
Authentication library for JavaScript web frameworks, with OAuth and OpenID Connect providers, email sign-in and credentials.
Auth.js is an authentication library for JavaScript web frameworks, published on npm as next-auth. The installation page starts with Next.js and also covers Qwik, SvelteKit and Express. The README names built-in database adapters for MySQL, MariaDB, PostgreSQL, Microsoft SQL Server, MongoDB and SQLite.
Worth knowing
The project says it is now part of Better Auth. Its README recommends that new projects start with Better Auth unless a specific feature gap applies, such as stateless session management without a database. Existing Auth.js users can keep using it, and security patches continue. The stable next-auth v4 line is in maintenance mode, and the installation page installs the v5 beta.
Identity
Rendering and deploy
- Install with
- npm6
Releases
Adoption
Sources
- 2026-11-04: links, Maintainer
authjs.dev/ - 2026-11-04: links, Categories, Databases, License, License model, GitHub stars, Contributors
github.com/nextauthjs/next-auth - 2026-11-04: links
authjs.dev/getting-started - 2026-11-04: First release
registry.npmjs.org/next-auth - 2026-11-04: Written in
api.github.com/repos/nextauthjs/next-auth - 2026-11-04: Install with
authjs.dev/getting-started/installation - 2026-11-04: Current major version
registry.npmjs.org/next-auth/latest - 2026-11-04: Last release
github.com/nextauthjs/next-auth/releases/tag/next-auth@4.24.15 - 2026-11-04: npm downloads a week
api.npmjs.org/downloads/range/2026-10-26:2026-11-01/next-auth - 2026-11-04: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/next-auth