From 3bab07678860298f02f1b78f2b2134e0b546a959 Mon Sep 17 00:00:00 2001 From: Theodor Esenwein Date: Fri, 14 Aug 2015 15:50:05 +0200 Subject: [PATCH] Should be implemented for non Callback Calls --- jsonwebtoken/jsonwebtoken.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/jsonwebtoken/jsonwebtoken.d.ts b/jsonwebtoken/jsonwebtoken.d.ts index 4deaf36ce..88615e345 100644 --- a/jsonwebtoken/jsonwebtoken.d.ts +++ b/jsonwebtoken/jsonwebtoken.d.ts @@ -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;