From e4593f112104848dbc4090ff04503a20306bf32b Mon Sep 17 00:00:00 2001 From: Owen Smith Date: Sun, 15 Dec 2019 11:07:08 -0500 Subject: [PATCH] jwa@^2.0.0 --- package.json | 2 +- test/jws.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3fb2837..f9cfc98 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "readmeFilename": "readme.md", "gitHead": "c0f6b27bcea5a2ad2e304d91c2e842e4076a6b03", "dependencies": { - "jwa": "^1.4.1", + "jwa": "^2.0.0", "safe-buffer": "^5.0.1" }, "devDependencies": { diff --git a/test/jws.test.js b/test/jws.test.js index 7f53d6f..77afe0b 100644 --- a/test/jws.test.js +++ b/test/jws.test.js @@ -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');