# ts-easy-jwt-auth

> Easy drop in jwt authentication and token renewal

Latest version **1.1.2** (published 2020-12-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install ts-easy-jwt-auth
pnpm add ts-easy-jwt-auth
yarn add ts-easy-jwt-auth
bun add ts-easy-jwt-auth
```

## 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 | 1.1.2 |
| Published | 2020-12-18 |
| First published | 2020-12-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 45.3 KB |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Brian Olencki |
| Maintainers | bolencki13 |
| Keywords | jwt, typescript, ooo, object oriented programming, authentication, auth, easy jwt |

## Links

- npm: https://www.npmjs.com/package/ts-easy-jwt-auth
- Repository: https://github.com/Olencki-Development/ts-easy-jwt-auth
- Homepage: https://github.com/Olencki-Development/ts-easy-jwt-auth#readme
- Issues: https://github.com/Olencki-Development/ts-easy-jwt-auth/issues
- npm.io page: https://npm.io/package/ts-easy-jwt-auth

## Dependencies (2)

- [bcrypt](https://npm.io/package/bcrypt.md) ^5.0.0
- [jsonwebtoken](https://npm.io/package/jsonwebtoken.md) ^8.5.1

## 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.1.2 (latest) — 2020-12-18
- 1.1.1 — 2020-12-17
- 1.1.0 — 2020-12-17
- 1.0.0 — 2020-12-14

## README

# Easy JWT Auth
> An easy drop-in authentication system utilizing a JWT access token & refresh token system.

[![NPM Version][npm-image]][npm-url]
[![Downloads Stats][npm-downloads]][npm-url]

Easy JWT Auth removes the need to maintain and rebuild authentication for each application. By using the generic helper functions available through this package, authentication and token management can be abstracted away to provide a simple standard interface.

## Installation

```sh
npm install ts-easy-jwt-auth --save
```

## Usage example

Easy JWT Auth contains a single class that should be instantiated once for each auth system. This will store the access and refresh tokens in memory and handle all user options.

See [docs/](https://github.com/Olencki-Development/ts-easy-jwt-auth/tree/main/docs) for documentation of each component and advanced usage.

See the [example/](https://github.com/Olencki-Development/ts-easy-jwt-auth/tree/main/example) folder for javascript and typescript examples.

## Development setup

The package is written in typescript and javascript.

```sh
npm install
npm test
```

## Release History

See [CHANGELOG.md](https://github.com/Olencki-Development/ts-easy-jwt-auth/blob/main/CHANGELOG.md) for more information.

## Meta

Brian Olencki – [brian.olencki.com](https://brian.olencki.com)

Distributed under the MIT license. See [LICENSE](https://github.com/Olencki-Development/ts-easy-jwt-auth/blob/main/LICENSE) for more information.

[https://github.com/Olencki-Development/ts-easy-jwt-auth](https://github.com/Olencki-Development/ts-easy-jwt-auth)

## Contributing

1. Fork it (<https://github.com/Olencki-Development/ts-easy-jwt-auth/fork>)
2. Create your feature branch (`git checkout -b feature/fooBar`)
3. Commit your changes (`git commit -am 'Add some fooBar'`)
4. Push to the branch (`git push origin feature/fooBar`)
5. Create a new Pull Request

<!-- Markdown link & img dfn's -->
[npm-image]: https://img.shields.io/npm/v/ts-easy-jwt-auth.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/ts-easy-jwt-auth
[npm-downloads]: https://img.shields.io/npm/dm/ts-easy-jwt-auth.svg?style=flat-square

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