# oauthjs/node-oauth2-server

Complete, compliant and well tested module for implementing an OAuth2 Server/Provider with express in node.js

Repository: https://github.com/oauthjs/node-oauth2-server
Canonical: https://ross.abutalabs.com/products/node-oauth2-server
Homepage: https://npmjs.org/package/oauth2-server
Language: JavaScript
License: MIT
License Family: permissive
Topics: oauth2-server
Last push: 2023-08-11T19:20:06+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4892, "days_push": 1118, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4066, forks 916 (observed 2026-08-28T04:08:34.104002+00:00)

## What it is
A Node.js module for implementing a fully RFC 6749/6750 compliant OAuth2 server/provider, framework-agnostic with official wrappers for Express and Koa. It supports authorization_code, client_credentials, refresh_token, password, and extension grants with scopes.

## Use cases
- implement an OAuth2 authorization server in Node.js
- add OAuth2 token issuance to an Express API
- support client credentials and password grants
- build a compliant OAuth2 provider with custom storage backend
- handle refresh token flows in a Node.js app

## When to choose
- you need standards-compliant OAuth2 server behavior in Node.js
- you use Express or Koa and want an official wrapper
- you want flexibility over the token storage backend

## When to avoid
- you only need OAuth client/consumer functionality rather than a server
- you need OpenID Connect or full identity provider features
- you are not on a supported Node.js release

## Facets
- artifact type: library
- maturity: active
- function: auth, authorization, middleware, http-server
- domain: security, apis, web-development, backend
- platform: -
- tags: oauth2, oauth2-server, express, koa, rfc6749, token-grants, nodejs, web-server

## Member repositories
- oauthjs/node-oauth2-server (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:34.104002+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-29T18:23:33.171819+00:00, confidence not recorded.
  - readme: https://github.com/oauthjs/node-oauth2-server (fetched 2026-08-28T04:08:34.104002+00:00, sha 56df6f1673fc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
