@ersinfotech/restrict

4.1.0 • Public • Published

Restrict

ERS auth middleware

Installation

$ npm i --save ersinfotech/restrict

API

var express = require('express');
var Restrict = require('@ersinfotech/restrict');

var app = express();
var restrict = Restrict({
	baseUrl: 'http://authUrl',
	oauth: {
		crypt_key: 'crypt_key'
		sign_key: 'sign_key'
		accessTokenTTL: 12 * 60 * 60 * 1000
	},
});

app.use(restrict());

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @ersinfotech/restrict

Weekly Downloads

5

Version

4.1.0

License

MIT

Unpacked Size

2.92 kB

Total Files

4

Last publish

Collaborators

  • ersinfotech