Skip to content

Commit

Permalink
Merge pull request #289 from DerDackel/update-jsonwebtoken
Browse files Browse the repository at this point in the history
chore(deps): Upgraded vulnerable jsonwebtoken version
  • Loading branch information
hoegertn committed Mar 13, 2023
2 parents 55d2053 + d997b68 commit c051522
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 56 deletions.
4 changes: 2 additions & 2 deletions package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/http/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ const promisedVerify = (token: string): Promise<{ [name: string]: string }> => {
return new Promise((resolve, reject) => {
verify(token, (header: JwtHeader, cb: SigningKeyCallback) => {
if (!header.kid) {
cb('no key id found');
cb(new Error('no key id found'));
}
getPublicKeys().then((keys) => {
cb(undefined, keys[header.kid!].pem);
cb(null, keys[header.kid!].pem);
}, cb);
}, { issuer: cognitoIssuer }, (err, decoded) => {
if (err) {
Expand Down
70 changes: 18 additions & 52 deletions yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c051522

Please sign in to comment.