# @types/jwt-client

> TypeScript definitions for jwt-client

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

## Install

```sh
npm install @types/jwt-client
pnpm add @types/jwt-client
yarn add @types/jwt-client
bun add @types/jwt-client
```

## 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; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.2.5 |
| Published | 2023-11-07 |
| First published | 2016-09-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51442 |
| Maintainers | types |

## Links

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

## Recent versions

- 0.2.5 (latest) — 2023-11-07
- 0.2.2 (ts2.0) — 2016-10-05
- 0.2.4 — 2023-10-18
- 0.2.3 — 2023-09-15
- 0.2.1 — 2016-09-19

## README

# Installation
> `npm install --save @types/jwt-client`

# Summary
This package contains type definitions for jwt-client (https://github.com/pauldijou/jwt-client).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jwt-client.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jwt-client/index.d.ts)
````ts
declare module "jwt-client" {
    interface JWTHeader {
        typ: string;
        alg: string;
    }

    interface JWTObject {
        header: JWTHeader;
        claim: any;
        signature: string;
    }

    /**
     * Read a string value (normally an HTTP header)
     * from JSON Web Token to an Object
     */
    function read(header: string): JWTObject;

    /**
     * Given a JWT object, stringify it back to
     * its JWT representation.
     */
    function write(value: JWTObject): string;

    function keep(value: JWTObject, key?: any, storate?: any): void;

    function remember(): void;

    function forget(): void;

    function get(): string;

    function validate(value: JWTObject, issuer?: any, audience?: any): boolean;
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: none

# Credits
These definitions were written by [Timoteo Ponce](https://github.com/timoteoponce).

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