Skip to content

Commit 118a149

Browse files
authored
Merge pull request #6 from jkevlin/add-test-and-docs-for-keylookup
added comment and trigger travis
2 parents 3f55b26 + 30de400 commit 118a149

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/key-lookup.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,15 @@ describe('demonstrate a key lookup on verify', function () {
4949
];
5050
var currentKey = 0
5151

52+
// ENCODE
5253
// create a token
5354
var token = new nJwt.Jwt(claims)
5455
.setSigningAlgorithm('HS256')
5556
.setSigningKey(keys[currentKey].secret)
5657
.setSigningKeyId(keys[currentKey].kid)
5758
.compact();
5859

60+
// DECODE
5961
// Parse the tokent
6062
var jwt = new nJwt.Parser().parse(token);
6163
// lookup the key

0 commit comments

Comments
 (0)