Skip to content

This is a fork which fixes bcrypt hashing rounds to 15

License

Notifications You must be signed in to change notification settings

Vocovo/feathers-authentication-local

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@feathersjs/authentication-local

Greenkeeper badge

Build Status Test Coverage 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.

About

This is a fork which fixes bcrypt hashing rounds to 15

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published