{"library":"express-bearer-token","type":"library","category":null,"description":"express-bearer-token is an Express middleware for extracting RFC6750-compliant OAuth 2.0 bearer tokens from incoming HTTP requests. It attempts to locate a token in the 'Authorization: Bearer <token>' header, the 'access_token' field in the request body, or 'access_token' in query parameters. Optionally, it can also extract tokens from cookies. If found, the token is made available on `req.token`. Crucially, if multiple token sources are present, the middleware strictly adheres to RFC6750 by immediately aborting the request with an HTTP 400 status code. The package is currently at version 3.0.0 and ships with TypeScript types. Its release cadence appears to be slow, with the last major release two years ago, suggesting a mature, maintenance-focused project rather than active feature development.","language":"javascript","status":"maintenance","version":"3.0.0","tags":["javascript","bearer token","bearer token middleware","express token","authorization bearer","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install express-bearer-token","imports":["import bearerToken from 'express-bearer-token'","import { type BearerTokenOptions } from 'express-bearer-token'","import 'express-bearer-token'"]},{"cmd":"yarn add express-bearer-token","imports":[]},{"cmd":"pnpm add express-bearer-token","imports":[]}],"homepage":null,"github":"https://github.com/tkellen/node-express-bearer-token","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/express-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/express-bearer-token/compatibility"}}