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

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i capital-auth

    Weekly Downloads

    2

    Version

    1.0.10

    License

    MIT

    Last publish

    Collaborators

    • pinkgorilla