# lelylan/simple-oauth2

A simple Node.js client library for Oauth2

Repository: https://github.com/lelylan/simple-oauth2
Canonical: https://ross.abutalabs.com/products/simple-oauth2
Homepage: http://lelylan.github.com/simple-oauth2/
Language: JavaScript
License Family: other
Last push: 2024-12-05T23:43:15+00:00

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

## Adoption (not part of the score)
Stars 1645, forks 289 (observed 2026-08-28T04:05:16.182978+00:00)

## What it is
simple-oauth2 is a Node.js client library for the OAuth 2.0 authorization framework. It supports the authorization code, resource owner password credentials, and client credentials grant types, plus token refresh and revocation.

## Use cases
- implement oauth2 authorization code flow in node.js
- get access tokens via client credentials grant
- refresh expired oauth2 access tokens
- revoke oauth2 access or refresh tokens
- authenticate against an oauth2 api from a node backend
- handle oauth2 password grant authentication

## When to choose
- you need a lightweight, focused oauth2 client in Node.js
- you want support for the common grant types without a full framework
- you need token refresh and revocation helpers

## When to avoid
- you need an oauth2 server or provider implementation
- you need OpenID Connect features beyond plain OAuth2
- you need a framework-integrated auth middleware solution

## Facets
- artifact type: library
- maturity: active
- function: auth, http-client
- domain: security, web-development, apis
- platform: -
- tags: oauth2, access-token, grant-types, token-refresh, nodejs

## Member repositories
- lelylan/simple-oauth2 (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:16.182978+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-30T03:45:25.390810+00:00, confidence not recorded.
  - readme: https://github.com/lelylan/simple-oauth2 (fetched 2026-08-28T04:05:16.182978+00:00, sha 1dab04b6f745)
  - registry_npm: https://registry.npmjs.org/simple-oauth2 (fetched 2026-08-29T11:18:58.010319+00:00, sha 95b7a23e1d55)
- Data as of 2026-08-30T08:39:29.467469+00:00.
