Skip to content

marcobrizi/buildingauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

buildingauth - Authentication Service for building

A module with simple authentication services for devices

API

Add a user

var auth = require('buildingauth');

auth.addUser('marco','passwd','marco.brizi@gmail.com', function(err) {
  //do some stuff
});

Get user info

var auth = require('buildingauth');

auth.getUserInfo('marco', function(err,user){
  //the user object like {username:'username',email:'e.mail@mail.com'}
});

Authenticate

var auth = require('buildingauth');

auth.authenticate('marco','passwd',function(err, result){
  //result return true if user is authenticated
});

About

Authentication Service for building

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published