@ersinfotech/restrict
v4.1.0
Published
ers auth middleware
Downloads
33
Readme
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