apollo-passport-local

0.0.3 • Public • Published

apollo-passport-local

Local strategy using email address and hashed, bcrypted password.

npm Circle CI Coverage Status MIT License

Copyright (c) 2016 by Gadi Cohen, released under the MIT license.

Features

  • Authenticate users with an email and password.
  • Passwords stored in the database are encrypted with bcrypt.

Usage

See https://github.com/gadicc/apollo-passport.

Note: you don't usually need a special apollo-passport-xxx package for every passport strategy. apollo-passport-local is a special case because of it's dependencies, e.g. bcrypt and some client-side hashing.

$ npm i --save passport-local apollo-passport-local

Server

import { Strategy as LocalStrategy } from 'passport-local';
 
// Your previously created ApolloPassport instance...
apolloPassport.use('local', LocalStrategy /*, options */);

Client

import ApolloPassportLocal from 'apollo-passport-local/lib/client';
 
// Your previously created ApolloPassport instance...
apolloPassport.use('local', ApolloPassportLocal);

/apollo-passport-local/

    Package Sidebar

    Install

    npm i apollo-passport-local

    Weekly Downloads

    3

    Version

    0.0.3

    License

    MIT

    Last publish

    Collaborators

    • gadicc