From 80fbeb3179243e6b0d4739a10d3f3a363d701c15 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Tue, 22 Mar 2016 14:18:00 +0100 Subject: [PATCH] Fix verifyAsync signature in documentation to expect a public instead of a private key --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6b8df3c..d91394f 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ Promise.try(function() { Like `jwt.sign`, but returns a Promise. [Documentation here](https://github.com/auth0/node-jsonwebtoken#jwtsignpayload-secretorprivatekey-options-callback). -### jwt.verifyAsync(payload, secretOrPrivateKey, options) +### jwt.verifyAsync(payload, secretOrPublicKey, options) Like `jwt.verify`, but returns a Promise. [Documentation here](https://github.com/auth0/node-jsonwebtoken#jwtverifytoken-secretorpublickey-options-callback).