# physio-authentication

> General authentication module for all Physio services

Latest version **0.0.12** (published 2015-06-23) · 0 weekly downloads

## Install

```sh
npm install physio-authentication
pnpm add physio-authentication
yarn add physio-authentication
bun add physio-authentication
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.12 |
| Published | 2015-06-23 |
| First published | 2015-05-24 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 15 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | physio, spekulatif |

## Links

- npm: https://www.npmjs.com/package/physio-authentication
- Repository: https://github.com/PhysioHealth/physio-authentication
- Homepage: https://github.com/PhysioHealth/physio-authentication#readme
- Issues: https://github.com/PhysioHealth/physio-authentication/issues
- npm.io page: https://npm.io/package/physio-authentication

## Dependencies (15)

- [ms](https://npm.io/package/ms.md) *
- [async](https://npm.io/package/async.md) *
- [nconf](https://npm.io/package/nconf.md) *
- [oauth](https://npm.io/package/oauth.md) *
- [lodash](https://npm.io/package/lodash.md) *
- [moment](https://npm.io/package/moment.md) *
- [request](https://npm.io/package/request.md) *
- [passport](https://npm.io/package/passport.md) *
- [passport-local](https://npm.io/package/passport-local.md) ^1.0.0
- [passport-moves](https://npm.io/package/passport-moves.md) 0.0.1
- [passport-fitbit](https://npm.io/package/passport-fitbit.md) ^0.1.2
- [passport-facebook](https://npm.io/package/passport-facebook.md) ^2.0.0
- [passport-runkeeper](https://npm.io/package/passport-runkeeper.md) ^0.1.2
- [physio-data-adapters](https://npm.io/package/physio-data-adapters.md) 0.0.22
- [passport-strava-oauth2](https://npm.io/package/passport-strava-oauth2.md) ^0.1.3

## Recent versions

- 0.0.12 (latest) — 2015-06-23
- 0.0.11 — 2015-06-23
- 0.0.10 — 2015-06-22
- 0.0.9 — 2015-06-21
- 0.0.8 — 2015-06-17
- 0.0.7 — 2015-06-09
- 0.0.6 — 2015-06-04
- 0.0.5 — 2015-06-03
- 0.0.4 — 2015-05-27
- 0.0.3 — 2015-05-27
- 0.0.2 — 2015-05-25
- 0.0.1 — 2015-05-24

## README

# physio-authentication
General authentication module for all Physio services

### Instalation

    # Include the library
    var Auth = require('physio-authentication')
    
    # Init the module
    var auth = new Auth({
      env: config.get('NODE_ENV'),
      baseUrl: 'localhost:3002',
      failUrl: 'http://localhost:3002/login',
      successUrl: 'http://localhost:3002/'
    })

    # Use as a expressjs middleware
    auth.expressify(app, express);

### Usage

    router.get('/some/path', function (req, res, next) {
      // useage
      console.log(req.currentUser);
    })

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