Preparing for system design interviews?  Try bugzed.com →

Koa Bearer Token Middleware

JSON →
library 2.0.2 ·javascript maintenance
verified Jun 17, 2026

koa-bearer-token is a middleware for Koa.js that parses bearer tokens from incoming requests, adhering to RFC6750. It extracts tokens from the `Authorization: Bearer <token>` header, `access_token` query parameter, or `access_token` in the request body. Since version 2.0.0, it also supports extracting tokens from signed or unsigned cookies. The current stable version is 2.0.2, released in August 2021, suggesting a maintenance or slow-cadence release schedule. Key differentiators include its strict RFC6750 compliance, extensive configurability for token keys and locations, and built-in TypeScript support. It integrates seamlessly with Koa applications, making it straightforward to secure API endpoints with OAuth2 bearer tokens. It requires Node.js version 12 or higher.

total hits 16
actors 4 distinct systems
last hit 17d ago AhrefsBot
GPTBot
4
ByteDance
3
Script
1
Humans
4

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇸🇬 Singapore · VN · BD