@feathersjs/authentication-local
![Download Status](https://img.shields.io/npm/dm/@feathersjs/authentication-local.svg?style=flat-square)
Local authentication strategy for feathers-authentication using Passport without all the boilerplate.
Installation
npm install @feathersjs/authentication-local --save
Quick example
const feathers = require('@feathersjs/feathers');
const authentication = require('feathers-authentication');
const local = require('@feathersjs/authentication-local');
const app = feathers();
app.configure(authentication(settings));
app.configure(local());
app.service('authentication').hooks({
before: {
create: [
authentication.hooks.authenticate(['local', 'jwt'])
]
}
});
Documentation
Please refer to the @feathersjs/authentication-local API documentation for more details.
License
Copyright (c) 2018
Licensed under the MIT license.