Socket
Book a DemoInstallSign in
Socket

@tokeeto/tkt-api-bearer

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tokeeto/tkt-api-bearer

Provide bearer requests going to or received on an API

latest
npmnpm
Version
0.1.2-alpha05
Version published
Maintainers
1
Created
Source

###About This software is intended to present a rough algorithm that provides a bearer for an API request.

###Install

Install via npm

npm install @tokeeto/tkt-api-bearer

###Usage

Typical usage would be to have it installed on the two (caller and receptor) ends. You can then call ApiBearer class to provide a bearer based on the request and compare them to see if they match.

####Caller-end example

In your .js file

const SR = require('tkt-api-bearer');

var time = new Date().getTime();
var params = {st: "good"};

var sreq = new SR.ApiBearer(params, "GET", "api-key", "api-username", time);

console.log(sreq.getBearer());

###License GNU AGPL

FAQs

Package last updated on 21 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts