From ba3174d10033c41e9c211a38f1cc67f74fbd7f69 Mon Sep 17 00:00:00 2001 From: Jared Hanson Date: Fri, 15 May 2015 13:36:10 -0700 Subject: [PATCH] Fix example in README, silence verbose logging. --- README.md | 2 +- test/jwt.rs.tests.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 5572fc9..dfc0a47 100644 --- a/README.md +++ b/README.md @@ -146,7 +146,7 @@ Example var decoded = jwt.decode(token); // get the decoded payload and header -var decoded = jwt.decode(token); +var decoded = jwt.decode(token, {complete: true}); console.log(decoded.header); console.log(decoded.payload) ``` diff --git a/test/jwt.rs.tests.js b/test/jwt.rs.tests.js index da471b9..133662d 100644 --- a/test/jwt.rs.tests.js +++ b/test/jwt.rs.tests.js @@ -279,7 +279,6 @@ describe('RS256', function() { var obj = { foo: 'bar' }; var token = jwt.sign(obj, priv, { algorithm: 'RS256' }); var decoded = jwt.decode(token, { complete: true }); - console.log(decoded); assert.deepEqual(decoded.payload, obj); assert.deepEqual(decoded.header, { typ: 'JWT', alg: 'RS256' }); assert.ok(typeof decoded.signature == 'string');