{"library":"koa-bearer-token","type":"library","category":null,"description":"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.","language":"javascript","status":"maintenance","version":"2.0.2","tags":["javascript","bearer","koa","middleware","oauth","token","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install koa-bearer-token","imports":["import { bearerToken } from 'koa-bearer-token';","const { bearerToken } = require('koa-bearer-token');","declare module 'koa' { interface Request { myToken?: string; } }"]},{"cmd":"yarn add koa-bearer-token","imports":[]},{"cmd":"pnpm add koa-bearer-token","imports":[]}],"homepage":null,"github":"https://github.com/chentsulin/koa-bearer-token","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/koa-bearer-token","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/koa-bearer-token/compatibility"}}