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);