Skip to content

Commit

Permalink
jwa@^2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
omsmith committed Dec 16, 2019
1 parent 9deb311 commit e4593f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"readmeFilename": "readme.md",
"gitHead": "c0f6b27bcea5a2ad2e304d91c2e842e4076a6b03",
"dependencies": {
"jwa": "^1.4.1",
"jwa": "^2.0.0",
"safe-buffer": "^5.0.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion test/jws.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ test('jws.verify: missing or invalid algorithm', function (t) {


test('jws.isValid', function (t) {
const valid = jws.sign({ header: { alg: 'hs256' }, payload: 'hi', secret: 'shhh' });
const valid = jws.sign({ header: { alg: 'HS256' }, payload: 'hi', secret: 'shhh' });
const invalid = (function(){
const header = Buffer.from('oh hei José!').toString('base64');
const payload = Buffer.from('sup').toString('base64');
Expand Down

0 comments on commit e4593f1

Please sign in to comment.