Back to gallery
nextauthjs/next-auth on GitHub — Authentication for the Web.
nextauthjs
Built bynextauthjs/

next-auth

Authentication for the Web.

Stars
28.4k
Forks
4k
Watchers
0
Open issues
392
TypeScriptISC main Updated 4 months ago~9 stars/day lifetime
Editor's take

The OG Next.js auth library, now Auth.js. ~24k stars. Quick to add OAuth providers (80+ preconfigured). Best for fast MVP work where you mostly need social login. Less flexible than Better Auth for advanced flows.

Use this if

You are shipping a Next.js MVP fast and need social login (Google, GitHub) working in an hour.

Skip if

You need fine-grained control over sessions, multi-tenant logic, or organization roles — pick Better Auth.

Authentication
Topics
nodejsnextjsoauthreactauthenticationnextauthcsrfjwtoauth2oidcauthnuxtnuxt-authremix-authsolidjssveltekitwebsolid-auth
Quick install
# Install via npm / pnpm / bun:
pnpm add next-auth
# or
npm install next-auth

Inferred from TypeScript · always double-check against the official README below.

Live data via GitHub REST API · Cached 30 min · Created 27 Jan 2018