norman-auth-server

0.3.0 • Public • Published

norman-auth-server

Norman authentication module.

To install run:

  npm install norman-auth-server

To include in your express app:

  var app = express();
  ...
  require('norman-auth-server')(app);

To check the authentication in your api use:

  var auth = require('norman-auth-server');
  app.use('/api', auth.isAuthenticated(), ...);
  app.use('/api/admin', auth.hasRole('admin'), ...);

/norman-auth-server/

    Package Sidebar

    Install

    npm i norman-auth-server

    Weekly Downloads

    0

    Version

    0.3.0

    License

    none

    Last publish

    Collaborators

    • devinea
    • davidjones02