@types/jwt-encode
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Installation

npm install --save @types/jwt-encode

Summary

This package contains type definitions for jwt-encode (https://www.npmjs.com/package/jwt-encode).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jwt-encode.

index.d.ts

interface BaseOptions {
    alg: "HS256";
    typ: "JWT";
}

type Options = Partial<BaseOptions> & {
    [key: string]: string;
};

declare function sign(data: unknown, secret: string, options?: Options): string;

export = sign;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Shakirov Kirill.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/jwt-encode

Weekly Downloads

31,292

Version

1.0.3

License

MIT

Unpacked Size

3 kB

Total Files

5

Last publish

Collaborators

  • types