# @happy-mandado/auth

> Happy Mandado auth

Latest version **1.0.1** (published 2021-03-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @happy-mandado/auth
pnpm add @happy-mandado/auth
yarn add @happy-mandado/auth
bun add @happy-mandado/auth
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-03-12 |
| First published | 2020-06-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 13 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | grevych@gmail.com |
| Maintainers | grevych |
| Keywords | happy-mandado, auth, webapp |

## Links

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

## Dependencies (13)

- [cors](https://npm.io/package/cors.md) ^2.8.5
- [config](https://npm.io/package/config.md) ^2.0.1
- [dotenv](https://npm.io/package/dotenv.md) ^6.2.0
- [helmet](https://npm.io/package/helmet.md) ^3.21.2
- [moment](https://npm.io/package/moment.md) ^2.22.2
- [express](https://npm.io/package/express.md) ^4.16.3
- [jwks-rsa](https://npm.io/package/jwks-rsa.md) ^1.8.0
- [passport](https://npm.io/package/passport.md) ^0.4.1
- [timekeeper](https://npm.io/package/timekeeper.md) ^2.1.2
- [express-jwt](https://npm.io/package/express-jwt.md) ^6.0.0
- [cookie-parser](https://npm.io/package/cookie-parser.md) ^1.4.4
- [passport-auth0](https://npm.io/package/passport-auth0.md) ^1.3.1
- [express-session](https://npm.io/package/express-session.md) ^1.17.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

- 1.0.1 (latest) — 2021-03-12
- 1.0.0 — 2020-08-22
- 0.1.0 — 2020-06-05

## README

# Happy Mandado Auth
Handles happy mandado webapp authentication

## Setup

### Requirements
Install nodejs:
```bash
$ brew install nodeenv

# Node Version X.Y
$ nodeenv /path/to/your/envs/node
$ source /path/to/your/envs/node/bin/activate
$ cd /path/to/waitress/repo/path

$ npm install
```

Auth0 tenant:
```
Domain
Client ID
Client Secret
Scope
```

### Config files
Each env must require its own:
 - Domain
 - API Origin
 - API Port
 - Auth callback
 - Auth redirect
 - Cookie name
 - Cookie secret
 - Cookie domain


## Test
```bash
$ npm test-unit
$ npm --silent run test-path path/to/file
```

## Run
Development
```bash
$ npm start-dev
```

Production
```bash
$ npm start
```

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