Merge pull request #15217 from tortis/patch-2

jwt-simple: Adding optional 'algorithm' param to decode()
This commit is contained in:
Yui
2017-03-17 10:37:45 -07:00
committed by GitHub
+2 -2
View File
@@ -1,4 +1,4 @@
// Type definitions for jwt-simple v0.5.0
// Type definitions for jwt-simple v0.5.1
// Project: https://github.com/hokaccha/node-jwt-simple
// Definitions by: Ken Fukuyama <https://github.com/kenfdev>, Gael Magnan <https://github.com/GaelMagnan>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -11,7 +11,7 @@
* @param algorithm default is HS256
* @api public
*/
export function decode(token: any, key: string, noVerify?: boolean): any;
export function decode(token: any, key: string, noVerify?: boolean, algorithm?: string): any;
/**
* Encode jwt
* @param payload