mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Merge pull request #15217 from tortis/patch-2
jwt-simple: Adding optional 'algorithm' param to decode()
This commit is contained in:
Vendored
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user