Overview
Auth.js is a set of open-source packages for implementing authentication across frameworks, platforms, and JavaScript runtimes. It supports OAuth 2.0 and OIDC providers, passwordless sign-in, Passkeys and WebAuthn, and database-backed or stateless sessions.
Features and best fit
Based on official documentation; not hands-on tested · Content checked:
Choose providers, sessions, and databases around application requirements
Applications can combine many sign-in providers, email or passwordless flows, and Passkeys, with or without a database. Defaults include CSRF tokens on POST routes, restrictive cookie policies, and encryption when JSON Web Tokens are used.
Sources: [1]
For JavaScript applications choosing how authentication data and sessions work
It is a candidate for teams that want to reduce framework-specific authentication code while retaining control of data storage, providers, and session policies. Verify the relevant adapter and framework integration across sign-in, sign-out, session refresh, and account linking.
Sources: [1]
Review the Better Auth direction before choosing it for a new project
Auth.js is now part of Better Auth, and the README recommends Better Auth for new projects. A notable exception is a feature gap around stateless session management without a database. Because the Auth.js brand, next-auth repository and npm package, and older documentation names coexist, pin the intended integration and version. The license is ISC.
Sources: [1]
Official sources
- [1]Auth.js README(2026-09-13)
Supplemental curator note
Selected for explicitly connecting NextAuth.js, Auth.js, and Better Auth while repository and package identifiers continue to coexist.
Growth
Growth trends · Last 30 days
28,367 Stars
Trend data is still being collected.
Development activity
Last 90 days · weekly
- Commits (last 30 days)
- 0
- Open PRs
- 210
Development activity is still being collected.
Built with
Categories and tags
Categories
GitHub data
GitHub dataView detailed GitHub data
GitHub Topics
- nodejs
- nextjs
- oauth
- react
- authentication
- nextauth
- csrf
- jwt
- oauth2
- oidc
- auth
- nuxt
- Stars
- 28,367
- Forks
- 4,043
- Watchers
- 117
- Open issues
- 393
- Primary language
- TypeScript
- License
- ISC
- Repository last updated
- Jul 22, 2026
Explore next
- React250,097 Stars
A JavaScript library for building web and native user interfaces from declarative components.
JavaScript - Vue 2212,485 Stars
The legacy Vue repository, EOL since the end of 2023 and directing users to Vue 3.
TypeScript - Bootstrap174,775 Stars
A responsive, mobile-first web framework built from CSS and JavaScript grids, utilities, and components.
MDX - Next.js142,264 Stars
Vercel's framework for building full-stack web applications by extending React.
JavaScript - FastAPI102,293 Stars
A Python web framework that derives validation, OpenAPI, and interactive API docs from type hints.
Python
Report incorrect information
Tell us if any listing information is incorrect or outdated.