# funky-jwt

> Native JWT validation without deps

Latest version **1.1.1** (published 2018-04-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install funky-jwt
pnpm add funky-jwt
yarn add funky-jwt
bun add funky-jwt
```

## 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.1.1 |
| Published | 2018-04-14 |
| First published | 2018-04-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Curtis Maloney |
| Maintainers | funkybob |

## Links

- npm: https://www.npmjs.com/package/funky-jwt
- Repository: https://github.com/funkybob/funky-jwt
- Homepage: https://github.com/funkybob/funky-jwt#readme
- Issues: https://github.com/funkybob/funky-jwt/issues
- npm.io page: https://npm.io/package/funky-jwt

## Recent versions

- 1.1.1 (latest) — 2018-04-14
- 1.1.0 — 2018-04-14
- 1.0.0 — 2018-04-14

## README

Native JWT validation
=====================

Using nothing but what modern browsers provide, this package can decode and
validate JWT, even those signed using RS256.

Supported Algorithms
--------------------

 - HS256
 - HS384
 - HS512
 - RS256
 - RS384
 - RS512

Note: RS algorithms only support keys in JWK format, currently.

Usage
-----

    let jwt = new JWT(token, options);
    try {
        jwt.is_valid()
    } catch {
        // :(
    };


Options
-------

 - hostname : used to retrieve public JWK from well known URI.
 - secret : Base64Url encoded secret for HS algorithms.
 - keys: known JWK objects for RS algorithms.
 - alg : specify to restrict acceptable algorithm.
 - aud : specify to validate the audience claim.

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