Merge pull request #5365 from tesenwein/patch-3

Should be implemented for non Callback Calls
This commit is contained in:
Masahiro Wakame
2015-08-17 22:40:00 +09:00
+1
View File
@@ -65,6 +65,7 @@ declare module "jsonwebtoken" {
* @param {VerifyOptions} [options] - Options for the verification
* @param {Function} callback - Callback to get the decoded token on
*/
function verify(token: string, secretOrPublicKey: string): void;
function verify(token: string, secretOrPublicKey: string, callback: VerifyCallbak): void;
function verify(token: string, secretOrPublicKey: Buffer, callback: VerifyCallbak): void;
function verify(token: string, secretOrPublicKey: string, options: VerifyOptions, callback: VerifyCallbak): void;