capital-auth

1.0.10 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.102latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.102
1.0.91
1.0.81
1.0.71
1.0.61
1.0.51
1.0.41
1.0.31
1.0.21
1.0.11
1.0.01

Package Sidebar

Install

npm i capital-auth

Weekly Downloads

12

Version

1.0.10

License

MIT

Last publish

Collaborators

  • pinkgorilla