# jsonwebtoken-tool

> Simple JWT utility tool for signing and verifying token

Latest version **3.0.0** (published 2023-07-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install jsonwebtoken-tool
pnpm add jsonwebtoken-tool
yarn add jsonwebtoken-tool
bun add jsonwebtoken-tool
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2023-07-08 |
| First published | 2023-02-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=12 |
| Dependencies | 4 |
| Unpacked size | 27.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 0 |
| Author | Tanver Hasan |
| Maintainers | tanverhasanre |
| Keywords | jwt |

## Links

- npm: https://www.npmjs.com/package/jsonwebtoken-tool
- Repository: https://github.com/tanverhasanre/jsonwebtoken_tool
- Homepage: https://github.com/tanverhasanre/jsonwebtoken_tool#readme
- Issues: https://github.com/tanverhasanre/jsonwebtoken_tool/issues
- npm.io page: https://npm.io/package/jsonwebtoken-tool

## Dependencies (4)

- [ms](https://npm.io/package/ms.md) ^2.1.1
- [jws](https://npm.io/package/jws.md) ^3.2.2
- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [semver](https://npm.io/package/semver.md) ^7.3.8

## Alternatives

- [@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
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 3.0.0 (latest) — 2023-07-08
- 2.2.5 — 2023-07-08
- 2.2.4 — 2023-07-08
- 2.2.3 — 2023-07-08
- 2.2.2 — 2023-07-08
- 2.2.1 — 2023-07-08
- 2.0.0 — 2023-07-08
- 1.1.0 — 2023-02-19
- 1.0.0 — 2023-02-19

## README

# This repo is created only for experimential reason. 
# DO NOT USE THIS REPO FOR PRODUCTION USE CASE
# jswonwebtoken_tool

An implementation of rfc7519

# Install

```bash
$ npm install jsonwebtoken_tool
```

# Usage

### jwt.sign(payload, secretOrPrivateKey, [options, callback])


(Asynchronous) If a callback is supplied, the callback is called with the `err` or the JWT.

(Synchronous) Returns the JsonWebToken as string

### jwt.verify(token, secretOrPublicKey, [options, callback])

(Asynchronous) If a callback is supplied, function acts asynchronously. The callback is called with the decoded payload if the signature is valid and optional expiration, audience, or issuer are valid. If not, it will be called with the error.

(Synchronous) If a callback is not supplied, function acts synchronously. Returns the payload decoded if the signature is valid and optional expiration, audience, or issuer are valid. If not, it will throw the error.


### jwt.decode(token [, options])
(Synchronous) Returns the decoded payload without verifying if the signature is valid.

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