# @tutor/auth

> Non-SAML authentification for tutor.

Latest version **1.0.1** (published 2016-01-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @tutor/auth
pnpm add @tutor/auth
yarn add @tutor/auth
bun add @tutor/auth
```

## Health

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

Positive: no vulnerabilities.

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

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2016-01-15 |
| First published | 2015-12-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | tutor |

## Links

- npm: https://www.npmjs.com/package/@tutor/auth
- Repository: https://github.com/welfenlab/tutor-auth
- Homepage: https://github.com/welfenlab/tutor-auth#readme
- Issues: https://github.com/welfenlab/tutor-auth/issues
- npm.io page: https://npm.io/package/@tutor/auth

## Dependencies (3)

- [lodash](https://npm.io/package/lodash.md) ^3.10.0
- [express-session](https://npm.io/package/express-session.md) ^1.11.3
- [express-session-rethinkdb](https://npm.io/package/express-session-rethinkdb.md) github:welfenlab/express-session-rethinkdb

## Recent versions

- 1.0.1 (latest) — 2016-01-15
- 1.0.0 — 2015-12-19

## README

# @tutor/auth

Authentification module for tutor.

## Installation

Via npm (at least version 2 for user packages):

```
npm install --save @tutor/auth
```

## Usage

The package exports a function that creates the necessary express api calls

```js
var authentification = function(name, pw) {
	// you should use a better authentification
	console.error('dummy authentification!')
	return name == pw
};
require('@tutor/auth')(connection, RethinkdbDriver, authentification)
```

You must explicitly pass the connection and the driver. This package uses [`express-session-rethinkdb`](https://github.com/Welfenlab/express-session-rethinkdb)
under the hood and that currently only works if the correct driver is passed through.

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