Skip to content

Commit

Permalink
Update jsonwebtoken to 9.0.0 This fixes #60
Browse files Browse the repository at this point in the history
  • Loading branch information
purplecabbage committed Mar 13, 2023
1 parent e4676b7 commit 66a4d4a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -25,15 +25,15 @@
"license": "Apache-2.0",
"dependencies": {
"form-data": "^3.0.0",
"jsonwebtoken": "^8.5.1",
"jsonwebtoken": "^9.0.0",
"node-fetch": "^2.6.1"
},
"devDependencies": {
"eslint": "^6.1.0",
"eslint-utils": ">=1.4.1",
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-prettier": "^3.1.0",
"jest": "^24.1.0",
"eslint-utils": ">=1.4.1",
"jest": "^29.5.0",
"prettier": "^2.0.0"
},
"jest": {
Expand Down
4 changes: 2 additions & 2 deletions test/auth.test.js
Expand Up @@ -15,7 +15,7 @@ governing permissions and limitations under the License.
const mockAccessToken = 'asdasdasd';

let jwt = require('jsonwebtoken');
let jwtActual = require.requireActual('jsonwebtoken');
let jwtActual = jest.requireActual('jsonwebtoken');
jest.mock('jsonwebtoken', () => jest.fn());

let mockResultSuccess = Promise.resolve({
Expand Down Expand Up @@ -158,7 +158,7 @@ describe('Sign with invalid primary key', () => {
metaScopes,
privateKey
})
).rejects.toThrowError(/no start line/);
).rejects.toThrowError('secretOrPrivateKey is not valid key material');
});
});

Expand Down

0 comments on commit 66a4d4a

Please sign in to comment.