600.0.0 • Published 5 years ago

@ihadeed/authentication-local v600.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

@feathersjs/authentication-local

Build Status Dependency Status Download Status

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();

// Setup authentication
app.configure(authentication(settings));
app.configure(local());

// Setup a hook to only allow valid JWTs or successful 
// local auth to authenticate and get new JWT access tokens
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.

600.0.0

5 years ago

500.0.0

5 years ago

100.5.0

5 years ago

100.4.0

5 years ago

100.3.0

5 years ago

100.2.0

5 years ago

100.1.0

5 years ago

100.0.0

5 years ago

6.0.0

5 years ago

5.7.0

5 years ago

5.6.0

5 years ago

5.5.0

5 years ago

5.4.0

5 years ago

5.3.0

5 years ago

5.2.1

5 years ago

5.0.1

5 years ago