capital-auth
v1.0.10
Published
jwt implementation for capital project
Downloads
23
Readme
capital-auth
jwt auth implementation on capital projects
version
1.0.2
dependencies
- jsonwebtoken
- body-parser
instalation
$ npm install capital-auth
usage
var secretKey = 'your secret key';
var auth = require('capital-auth');
router.use(auth.authorize(secretKey));
//all request below this point will require token
router.get('/', callback);