# apollo-module-authentication

> Apollo password authentication

Latest version **2.0.0** (published 2018-03-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install apollo-module-authentication
pnpm add apollo-module-authentication
yarn add apollo-module-authentication
bun add apollo-module-authentication
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2018-03-07 |
| First published | 2016-09-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 136.4 KB |
| Known vulnerabilities | 0 (+26 in 2 direct dependencies) |
| Install scripts | no |
| Author | Tomi Trescak |
| Maintainers | tomitrescak |
| Keywords | Apollo, Connector, Mongodb |

## Links

- npm: https://www.npmjs.com/package/apollo-module-authentication
- npm.io page: https://npm.io/package/apollo-module-authentication

## Dependencies (6)

- [nodemailer](https://npm.io/package/nodemailer.md) ^4.6.2
- [proxyquire](https://npm.io/package/proxyquire.md) ^2.0.0
- [jsonwebtoken](https://npm.io/package/jsonwebtoken.md) ^8.2.0
- [bcrypt-nodejs](https://npm.io/package/bcrypt-nodejs.md) ^0.0.3
- [meteor-random](https://npm.io/package/meteor-random.md) ^0.0.3
- [meteor-sha256](https://npm.io/package/meteor-sha256.md) ^1.0.1

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [@temporal-architect/claude-plugin](https://npm.io/package/@temporal-architect/claude-plugin.md) — 335 weekly downloads

## Recent versions

- 2.0.0 (latest) — 2018-03-07
- 1.2.2 — 2017-08-04
- 1.2.1 — 2017-08-04
- 1.2.0 — 2017-07-30
- 1.1.11 — 2017-07-29
- 1.1.10 — 2017-07-29
- 1.1.9 — 2017-07-29
- 1.1.8 — 2017-06-06
- 1.1.7 — 2017-01-24
- 1.1.6 — 2017-01-24
- 1.1.5 — 2017-01-24
- 1.1.4 — 2017-01-06
- 1.1.3 — 2017-01-06
- 1.1.2 — 2017-01-06
- 1.1.1 — 2017-01-06
- … 10 more at https://npm.io/package/apollo-module-authentication/versions

## README

# Introduction

Connector for mongodb for apollo.
It also includes the base model for all context models.

This module is built in ES6 with no transpilation for easier debugging.
You have to use Node 6+ to use it.

```js
import { MongoConnector } from 'apollo-connector-mongodb');

const mongoURL = 'mongodb://localshot:27017/test';

const conn = new MongoConnector(mongoURL, () => {
  
  //init express and apollo
  const context = initContext(conn);
  const config = {
    schema,
    pretty : true,
    context
  };

  // launches a new express instance
  startExpress(config);
});
```

### Model

```js
class User extends BaseModel {
  method() {
    this.collection.find() ... // mogodb collection
  }
}
```

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