# auth0/nextjs-auth0

Next.js SDK for signing in with Auth0

Repository: https://github.com/auth0/nextjs-auth0
Canonical: https://ross.abutalabs.com/products/nextjs-auth0
Language: TypeScript
License: MIT
License Family: permissive
Topics: auth0, nextjs, typescript, react, dx-sdk
Last push: 2026-08-26T13:26:31+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 98, longevity 100
- inputs: {"age_days": 2553, "days_push": 7, "days_rel": 15, "gap_med": 7, "n_releases_24m": 50}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2305, forks 467 (observed 2026-08-28T04:06:35.743459+00:00)

## What it is
The Auth0 Next.js SDK is a TypeScript library for adding user authentication to Next.js applications via Auth0. It handles sign-in, sign-out, session cookie encryption, and callback routing with minimal configuration.

## Use cases
- add Auth0 login to a Next.js app
- implement sign-in and sign-out with OAuth/OIDC
- protect Next.js pages and API routes behind authentication
- manage encrypted session cookies in Next.js
- support Auth0 authentication in Vercel preview deployments
- retrieve user access tokens for calling APIs from Next.js

## When to choose
- you use Auth0 as your identity provider and build with Next.js
- you want a maintained official SDK with session handling out of the box
- you need App Router and Pages Router support with TypeScript

## When to avoid
- you use an identity provider other than Auth0
- you are not building a Next.js application
- you need fully self-hosted auth without an external identity service

## Facets
- artifact type: library
- maturity: active
- function: auth, middleware, sdk
- domain: web-development, security, developer-tools
- platform: -
- tags: nextjs, auth0, oauth, oidc, session-management, react, typescript, nodejs, web-server

## Member repositories
- auth0/nextjs-auth0 (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:35.743459+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-30T02:39:41.829680+00:00, confidence not recorded.
  - readme: https://github.com/auth0/nextjs-auth0 (fetched 2026-08-28T04:06:35.743459+00:00, sha a8d5cad7339e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
