# NextAuth.js

Authentication for the Web.

Repository: https://github.com/nextauthjs/next-auth
Canonical: https://ross.abutalabs.com/products/nextauthjs
Homepage: https://authjs.dev
Language: TypeScript
License: ISC
License Family: permissive
Topics: nodejs, nextjs, oauth, react, authentication, nextauth, csrf, jwt, oauth2, oidc, auth, nuxt, nuxt-auth, remix-auth, solidjs, sveltekit, web, solid-auth
Last push: 2026-07-22T19:42:19+00:00
Link (homepage): https://authjs.dev
Link (site_page): https://authjs.dev/getting-started
Link (site_page): https://authjs.dev/getting-started/integrations

## Health v2 (maintenance only)
Score: 90/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 93, release rhythm 81, longevity 100
- inputs: {"age_days": 3140, "days_push": 42, "days_rel": 44, "gap_med": 0.0, "n_releases_24m": 517}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 28345, forks 4044 (observed 2026-08-28T04:11:48.269717+00:00)

## What it is
Auth.js (formerly NextAuth.js) is an open-source, runtime-agnostic authentication library built on standard Web APIs, with deep integrations for Next.js, SvelteKit, Express, Qwik, Remix, Nuxt, and SolidStart. It supports OAuth 2.0/OIDC providers, email/passwordless sign-in, WebAuthn passkeys, and optional database-backed sessions via adapters.

## Use cases
- add google or github sign-in to a next.js app
- implement oauth2 login for a sveltekit application
- add passwordless email magic link authentication
- support passkeys and webauthn sign-in
- manage user sessions with or without a database
- add authentication to an express server
- integrate many oauth providers like discord, keycloak, auth0

## When to choose
- you need full-stack authentication in a supported JS framework (Next.js, SvelteKit, Express, Qwik, etc.)
- you want to self-host auth and own your user data
- you need broad OAuth/OIDC provider coverage out of the box
- you want stateless JWT sessions without a database

## When to avoid
- you are starting a brand-new project - the project now recommends Better Auth
- you need a fully managed hosted identity service with enterprise SSO compliance
- your stack is outside the JavaScript/TypeScript ecosystem

## Facets
- artifact type: library
- maturity: maintenance
- function: auth, middleware, http-server
- domain: web-development, security, backend, frontend
- platform: serverless, cross-platform
- tags: oauth2, oidc, jwt, csrf, passkeys, webauthn, nextjs, sveltekit, sso, session-management, database-adapters, nodejs, web-server, typescript

## Member repositories
- nextauthjs/next-auth (main) score 90
- nextauthjs/next-auth-example (examples) score 52

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:48.269717+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:54:24.423023+00:00, confidence not recorded.
  - readme: https://github.com/nextauthjs/next-auth (fetched 2026-08-28T04:11:48.269717+00:00, sha 6adaffa5f050)
  - homepage: https://authjs.dev (fetched 2026-08-29T07:51:34.523243+00:00, sha decf3d42000c)
  - site_page: https://authjs.dev/getting-started (fetched 2026-08-29T07:51:34.532004+00:00, sha a30c0e6efe9e)
  - site_page: https://authjs.dev/getting-started/integrations (fetched 2026-08-29T07:51:34.533907+00:00, sha 00cbc2c7648b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
