lean-auth

1.0.1 • Public • Published

lean-auth

NPM Version Build Status

features

  • username/password login
  • ldap login
  • email verification
  • password recovery
  • role/permission management

api

const {Auth} = require("lean-auth")
 
let auth = new Auth({database: "mysql://user:passwd@localhost/db"})
 
auth.sync().then(function(){
    auth.createUser({
        name: name,
        email: email,
        password: password
    })
})
 
auth.login({name: name}, password)

Readme

Keywords

Package Sidebar

Install

npm i lean-auth

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

70.8 kB

Total Files

11

Last publish

Collaborators

  • zf