superagent-authorization
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

superagent-authorization

Installation

npm install -S superagent-authorization

Usage

const { Basic, Bearer } = require('superagent-authorization');
const superagent = require('superagent');
 
superagent.get('/resources')
  .use(Basic("my-username", "my-password"))
  .end();
  
superagent.post('/resources')
  .use(Bearer("my-token"))
  .end();  

Package Sidebar

Install

npm i superagent-authorization

Weekly Downloads

127

Version

1.0.1

License

MIT

Unpacked Size

3.82 kB

Total Files

7

Last publish

Collaborators

  • dotronglong