1.1.0 • Published 9 years ago

restberry-passport-local v1.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

Restberry-Passport-Local

npm.io npm.io

Restberry Passport wrapper for passport-local.

Install

npm install restberry-passport-local

Usage

var restberryPassport = require('restberry-passport');

var auth = restberryPassport.config(function(auth) {
    ...
})
.use('local', {
    passwordMinLength: 8,
});

restberry.use(auth);

This will add a email and a password field to the User and the possibility to authenticate with those. One new routes have been created to the User:

  • POST /login