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.