norman-auth-server
v0.3.0
Published
Angular module to handle user authentication
Downloads
10
Readme
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'), ...);