mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-27 12:21:19 +08:00
Should be implemented for non Callback Calls
This commit is contained in:
1 parent
e95958ac84
commit
3bab076788
1 file changed
+1
Vendored
+1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user