Nurturing Palpable Magnificence
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    restberry-passport-localpublic

    Restberry-Passport-Local

    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

    install

    npm i restberry-passport-local

    Downloadslast 7 days

    0

    version

    1.1.0

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar