koajs/jwt
Koa middleware for validating JSON Web Tokens observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
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: 4599
- days_rel: n/a
- days_push: 723
- n_releases_24m: 0
Adoption not part of the score
1350 stars · 121 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
koa-jwt is a Koa middleware for authenticating HTTP requests using JSON Web Tokens. It validates JWTs from headers or cookies and exposes the decoded payload to downstream middleware for authorization.
Use cases
- add jwt authentication to a koa api
- validate bearer tokens in node.js http requests
- protect koa routes with token auth
- read jwt from a cookie in koa
- set authenticated user on request state for authorization
When to choose
- your app is built on Koa and you need standard JWT bearer/cookie authentication
- you want a small, focused middleware rather than a full auth framework
- you need token revocation checks and custom secret handling
When to avoid
- you use Express or Fastify rather than Koa
- you need full identity management with sessions, OAuth, or user registration
- you need non-JWT auth schemes like basic auth or SAML
Facets
library · maturity stable
auth middleware http-server web-development backend security apis jwt koa authentication token-validation expressjs-alternative nodejs web-server
1 source
- readme: https://github.com/koajs/jwt · fetched 2026-08-28 · e9e52051ecc3
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| koajs/jwt | main | 23 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem