A module with simple authentication services for devices
var auth = require('buildingauth');
auth.addUser('marco','passwd','marco.brizi@gmail.com', function(err) {
//do some stuff
});
var auth = require('buildingauth');
auth.getUserInfo('marco', function(err,user){
//the user object like {username:'username',email:'e.mail@mail.com'}
});
var auth = require('buildingauth');
auth.authenticate('marco','passwd',function(err, result){
//result return true if user is authenticated
});