# jec-auth

> wrapper library for passport-jwt

Latest version **0.2.4** (published 2020-03-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install jec-auth
pnpm add jec-auth
yarn add jec-auth
bun add jec-auth
```

## 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.2.4 |
| Published | 2020-03-12 |
| First published | 2020-03-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.2.4 |
| Dependencies | 2 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jerico Estanislao |
| Maintainers | jestanislao |
| Keywords | auth, passport, jwt |

## Links

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

## Dependencies (2)

- [passport](https://npm.io/package/passport.md) ^0.4.1
- [passport-jwt](https://npm.io/package/passport-jwt.md) ^4.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.2.4 (latest) — 2020-03-12
- 0.2.3 — 2020-03-12
- 0.1.3 — 2020-03-11
- 0.1.2 — 2020-03-11
- 0.1.1 — 2020-03-11
- 0.1.0 — 2020-03-11

## README

# jec-auth
Wrapper library for passport-jwt. Supports express and sequelize.

## Install
```
npm install --save jec-auth
```

## Example Usage

```
const {initialize, authenticate} = require('jec-auth')
const { Router } = require('express');
const userModel = require('./*')
const restrictedControllers = require('./*')

const router = Router();

router.use(initialize(process.env.ACCESS_KEY, userModel));

router.use(authenticate(), restrictedControllers);

module.exports = router;

```

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