# apollo-passport-local

> Local strategy using email address and hashed, bcrypted password

Latest version **0.0.3** (published 2016-09-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install apollo-passport-local
pnpm add apollo-passport-local
yarn add apollo-passport-local
bun add apollo-passport-local
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2016-09-04 |
| First published | 2016-08-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Gadi Cohen |
| Maintainers | gadicc |
| Keywords | apollo, passport, apollo-passport, auth, authentication, apollo-passport-strategy |

## Links

- npm: https://www.npmjs.com/package/apollo-passport-local
- Repository: https://github.com/apollo-passport/local
- Homepage: https://github.com/apollo-passport/local#readme
- Issues: https://github.com/apollo-passport/local/issues
- npm.io page: https://npm.io/package/apollo-passport-local

## Dependencies (3)

- [bcrypt](https://npm.io/package/bcrypt.md) ^0.8.7
- [sha.js](https://npm.io/package/sha.js.md) ^2.4.5
- [passport-local](https://npm.io/package/passport-local.md) ^1.0.0

## Alternatives

- [@clerk/clerk-expo](https://npm.io/package/@clerk/clerk-expo.md) — 133.6K weekly downloads
- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2016-09-04
- 0.0.2 — 2016-09-03
- 0.0.1 — 2016-08-21

## README

# apollo-passport-local

Local strategy using email address and hashed, bcrypted password.

[![npm](https://img.shields.io/npm/v/apollo-passport-local.svg?maxAge=2592000)](https://www.npmjs.com/package/apollo-passport-local) [![Circle CI](https://circleci.com/gh/apollo-passport/local.svg?style=shield)](https://circleci.com/gh/apollo-passport/local) [![Coverage Status](https://coveralls.io/repos/github/apollo-passport/local/badge.svg?branch=master)](https://coveralls.io/github/apollo-passport/local?branch=master) ![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)

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](https://en.wikipedia.org/wiki/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.

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

**Server**

```js
import { Strategy as LocalStrategy } from 'passport-local';

// Your previously created ApolloPassport instance...
apolloPassport.use('local', LocalStrategy /*, options */);
```

**Client**

```js
import ApolloPassportLocal from 'apollo-passport-local/lib/client';

// Your previously created ApolloPassport instance...
apolloPassport.use('local', ApolloPassportLocal);
```

---
_Source: https://npm.io/package/apollo-passport-local · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
