{"library":"fetch-plus-bearerauth","type":"library","category":null,"description":"Bearer authentication middleware for fetch-plus. Version 3.10.4 provides a simple way to attach Bearer tokens to HTTP requests via fetch-plus's middleware system. It integrates with fetch-plus's composable pipeline, allowing token injection from a static string, a function returning a token, or an async function. The library is lightweight and focused, relying on fetch-plus ^3.0.1. Compared to other auth helpers, it leverages fetch-plus's middleware architecture for cleaner separation of concerns, but is tightly coupled to fetch-plus and not usable standalone.","language":"javascript","status":"active","version":"3.10.4","tags":["javascript","fetch","api","xhr","plus","rest","restful","middleware","json"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install fetch-plus-bearerauth","imports":["import bearerauth from 'fetch-plus-bearerauth'","import { bearerauth } from 'fetch-plus-bearerauth'","const bearerauth = require('fetch-plus-bearerauth')"]},{"cmd":"yarn add fetch-plus-bearerauth","imports":[]},{"cmd":"pnpm add fetch-plus-bearerauth","imports":[]}],"homepage":"https://github.com/RickWong/fetch-plus","github":"https://github.com/RickWong/fetch-plus","docs":null,"changelog":null,"pypi":null,"npm":"fetch-plus-bearerauth","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}