0.3.2 • Published 3 years ago

@fcus/oauth-1-header v0.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

0.3.2

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago