# @types/jwa

> TypeScript definitions for jwa

Latest version **2.0.3** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/jwa
pnpm add @types/jwa
yarn add @types/jwa
bun add @types/jwa
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.3 |
| Published | 2023-11-07 |
| First published | 2021-08-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51437 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/jwa
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jwa
- npm.io page: https://npm.io/package/@types/jwa

## Recent versions

- 2.0.3 (latest) — 2023-11-07
- 2.0.0 (ts3.6) — 2021-08-03
- 2.0.2 — 2023-10-18
- 2.0.1 — 2023-09-15

## README

# Installation
> `npm install --save @types/jwa`

# Summary
This package contains type definitions for jwa (https://github.com/auth0/node-jwa#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jwa.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jwa/index.d.ts)
````ts
type Algorithm =
    | "HS256"
    | "HS384"
    | "HS512"
    | "RS256"
    | "RS384"
    | "RS512"
    | "PS256"
    | "PS384"
    | "PS512"
    | "ES256"
    | "ES384"
    | "ES512"
    | "none";

interface JWA {
    sign(input: string, secretOrPrivateKey: string): string;

    verify(input: string, signature: string, secretOrPublicKey: string): boolean;
}

declare function jwa(algorithm: Algorithm): JWA;

export = jwa;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: none

# Credits
These definitions were written by [Daniel Hritzkiv](https://github.com/dhritzkiv).

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