auth0/express-jwt
connect/express middleware that validates a JsonWebToken (JWT) and set the req.user with the attributes observed · 2026-08-28
Health v2 · maintenance only
72/100
- Activity 89
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4698
- days_rel: n/a
- days_push: 69
- n_releases_24m: 0
Adoption not part of the score
4513 stars · 443 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Express middleware that validates JSON Web Tokens (JWTs) using the webtoken library and attaches the decoded payload to the request object. It supports custom token extraction, revocation checks, expiration handling, and configurable algorithms, audience, and issuer validation.
Use cases
- protect express routes with jwt authentication
- validate bearer tokens in an express api
- attach decoded jwt payload to request object
- handle token revocation and expiration in express
- require authentication middleware for nodejs http endpoints
When to choose
- you are building an express or connect-based nodejs api that authenticates users with jwts
- you need flexible token extraction from headers, cookies, or query params
- you want configurable validation of algorithms, audience, issuer, and revocation
When to avoid
- you are not using express or connect middleware
- you need full oauth2/openid connect flows rather than simple jwt verification
- you use a framework other than express with incompatible middleware conventions
Facets
library · maturity stable
auth middleware http-server security web-development backend apis jwt express authentication bearer-token token-validation nodejs
2 sources
- readme: https://github.com/auth0/express-jwt · fetched 2026-08-28 · 9168747a9b23
- registry_npm: https://registry.npmjs.org/express-jwt · fetched 2026-08-29 · 5cd2f9afd751
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| auth0/express-jwt | main | 72 |
For agents
markdown · JSON · MCP: product_card(name="auth0/express-jwt")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem