Files
DefinitelyTyped/jwt-simple/index.d.ts
2016-04-27 21:30:22 -07:00

22 lines
588 B
TypeScript

// Type definitions for jwt-simple v0.2.0
// Project: https://github.com/hokaccha/node-jwt-simple
// Definitions by: Ken Fukuyama <https://github.com/kenfdev>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* Decode jwt
* @param token
* @param key
* @param noVerify
* @api public
*/
export declare function decode(token: any, key: string, noVerify?: boolean): any;
/**
* Encode jwt
* @param payload
* @param key
* @param algorithm default is HS256
* @api public
*/
export declare function encode(payload: any, key: string, algorithm?: string): string;