mikenicholson/passport-jwt
Passport authentication using JSON Web Tokens observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- 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: 4316
- days_rel: n/a
- days_push: 942
- n_releases_24m: 0
Adoption not part of the score
1980 stars · 210 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
passport-jwt is a Passport authentication strategy for Node.js that authenticates HTTP requests using JSON Web Tokens. It extracts a JWT from incoming requests, verifies its signature and optional claims (issuer, audience, expiration, algorithms), and enables session-less token-based authentication for RESTful API endpoints.
Use cases
- authenticate a node.js express API with JWT bearer tokens
- add JSON Web Token authentication to a Passport-based app
- secure RESTful endpoints without server-side sessions
- verify JWT signature from the Authorization header in Node.js
- token-based stateless authentication for a REST API
- passport strategy that validates JWT issuer, audience, and expiration
- extract and verify a JWT from a request using a custom extractor
When to choose
- Your Node.js app already uses Passport and you want to add JWT-based, session-less authentication
- You need to secure RESTful API endpoints with signed tokens using either symmetric secrets or PEM-encoded public keys
- You need flexible token extraction from headers, query strings, cookies, or body, or per-request secret resolution via secretOrKeyProvider
When to avoid
- You are not using Passport and just need standalone JWT verification (use jsonwebtoken or a simple middleware directly)
- You need browser login flows with sessions, OAuth, or OpenID Connect (other Passport strategies or an identity provider SDK fit better)
- You require built-in JWKS key-rotation support from an identity provider without writing a custom secretOrKeyProvider
Facets
library · maturity active
auth middleware security web-development backend apis jwt passport passport-strategy json-web-tokens token-authentication stateless-auth rest-api express npm-package nodejs web-server
2 sources
- readme: https://github.com/mikenicholson/passport-jwt · fetched 2026-08-28 · af9bf6b3ab2a
- registry_npm: https://registry.npmjs.org/passport-jwt · fetched 2026-08-29 · c1faffbd80c3
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| mikenicholson/passport-jwt | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="mikenicholson/passport-jwt")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem