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

0.5.36 • Public • Published

Installation

npm install --save @types/jwt-simple

Summary

This package contains type definitions for jwt-simple (https://github.com/hokaccha/node-jwt-simple).

Details

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

index.d.ts

/**
 * Decode jwt
 * @param token
 * @param key
 * @param noVerify
 * @param algorithm default is HS256
 * @api public
 */
export function decode(token: any, key: string, noVerify?: boolean, algorithm?: string): any;
/**
 * Encode jwt
 * @param payload
 * @param key
 * @param algorithm default is HS256
 * @param options
 * @api public
 */
export function encode(payload: any, key: string, algorithm?: string): string;

Additional Details

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

Credits

These definitions were written by Ken Fukuyama, and Gael Magnan.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/jwt-simple

Weekly Downloads

27,827

Version

0.5.36

License

MIT

Unpacked Size

3.59 kB

Total Files

5

Last publish

Collaborators

  • types