Skip to content

Commit

Permalink
Fix example in README, silence verbose logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhanson committed May 15, 2015
1 parent 851bda2 commit ba3174d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
```
Expand Down
1 change: 0 additions & 1 deletion test/jwt.rs.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit ba3174d

Please sign in to comment.