0.3.0 • Published 9 years ago

norman-auth-server v0.3.0

Weekly downloads
6
License
-
Repository
github
Last release
9 years ago

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'), ...);