# auth0/auth0.js

Auth0 headless browser sdk

Repository: https://github.com/auth0/auth0.js
Canonical: https://ross.abutalabs.com/products/auth0js
Language: JavaScript
License: MIT
License Family: permissive
Topics: auth0, javascript, oauth2, authentication, authorization, jwt, browser, login, dx-sdk, sdk
Last push: 2026-08-26T05:09:45+00:00

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

## Adoption (not part of the score)
Stars 1057, forks 511 (observed 2026-08-28T04:03:24.898352+00:00)

## What it is
Auth0's client-side JavaScript SDK for browser-based authentication and authorization against the Auth0 platform. It provides WebAuth, Authentication, and Management API clients supporting OAuth2/OIDC flows, JWT handling, and login in single-page applications.

## Use cases
- add auth0 login to a single-page app
- implement oauth2 authorization code flow in the browser
- handle jwt tokens for a javascript frontend
- call the auth0 authentication api from the client
- manage user profiles with the auth0 management api
- implement silent session renewal with checksession

## When to choose
- your app uses the auth0 identity platform and runs in a browser
- you need classic web auth flows (popup, redirect, silent renew) in a SPA
- you want an official, MIT-licensed client-side auth0 sdk

## When to avoid
- you are not using auth0 as your identity provider
- you are building a new app and can use the newer @auth0/auth0-spa-js or @auth0/auth0-react SDKs instead
- you need server-side or native mobile authentication

## Facets
- artifact type: library
- maturity: active
- function: auth, authorization, sdk, http-client
- domain: web-development, security, frontend, apis
- platform: browser
- tags: auth0, oauth2, jwt, single-page-app, browser-sdk, login, javascript, nodejs

## Member repositories
- auth0/auth0.js (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:24.898352+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-30T06:57:55.696975+00:00, confidence not recorded.
  - readme: https://github.com/auth0/auth0.js (fetched 2026-08-28T04:03:24.898352+00:00, sha d674e777a12a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
