@fcus/oauth-1-header
TypeScript icon, indicating that this package has built-in type declarations

0.3.2 • Public • Published

OAuth1.0 header

Node.js lib for OAuth1.0 header generation.

Installation

npm install --save oauth-1-header

How to use

import { OAuth } from 'oauth-1-header';

const authorization = OAuth.authorize(
    {
        method: 'method', // DELETE, GET, PATCH, POST, PUT
        url: 'https://example.com/some-url?query=test',
    },
    {
        consumer: {
            key: 'key',
            secret: 'secret',
        },
    },
);

Then set authorization as one of your headers

Readme

Keywords

none

Package Sidebar

Install

npm i @fcus/oauth-1-header

Weekly Downloads

16

Version

0.3.2

License

MIT

Unpacked Size

41.4 kB

Total Files

23

Last publish

Collaborators

  • vanielf
  • annejouke