Should be implemented for non Callback Calls

This commit is contained in:
Theodor Esenwein
2015-08-14 15:50:05 +02:00
parent e95958ac84
commit 3bab076788
+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;