i ideas / repo launcher
nextauthjs avatar

nextauthjs/next-auth

★ 28,378TypeScriptISC72

Authentication for the Web.

What it is

Auth.js Authentication for the Web. Open Source. Full Stack. Own Your Data. Auth.js is a set of open-source packages that are built on standard Web APIs for authentication in modern applications with any framework on any platform in any JS runtime. Auth js is now part of Better Auth. We recommend new projects to start with Better Auth unless there are some very specific feature gaps (most notably stateless session management without a database).

When to use it

Reach for next-auth when you need sign-in, users, permissions, subscriptions or getting paid — it's written in TypeScript and fits stacks tagged auth, authentication, csrf, jwt.

Category
Auth & Payments
Also in
—
Stars
28,378
Forks
4,024
Last push
4 months ago
Created
2018-01-27
Open issues
604
Website
authjs.dev

Quick start

$ git clone https://github.com/nextauthjs/next-auth.git

Hand it to your AI

Read https://ideas.asveas.com/r/nextauthjs/next-auth.md and help me add nextauthjs/next-auth to my project. Explain the setup steps for my stack and show the minimal code to get it working.

Alternatives to next-auth

All Auth & Payments →

Pairs well with

FAQ

What is next-auth?

nextauthjs/next-auth is an auth / payments tool on GitHub: Authentication for the Web. Auth.js Authentication for the Web.

When should I use next-auth?

Reach for next-auth when you need sign-in, users, permissions, subscriptions or getting paid — it's written in TypeScript and fits stacks tagged auth, authentication, csrf, jwt.

What are the best alternatives to next-auth?

Popular alternatives in Auth & Payments: keycloak/keycloak (37.8k★), better-auth/better-auth (30.7k★), logto-io/logto (14.9k★), polarsource/polar (10.5k★), stripe/stripe-node (4.6k★).

Is next-auth actively maintained?

nextauthjs/next-auth looks actively maintained: the last push was 4 months ago (2026-07-22), with 28,378 stars and 604 open issues.

What license does next-auth use?

nextauthjs/next-auth is published under the ISC license. Check the repository's LICENSE file before commercial use.