Skip to content

Commit

Permalink
Merge pull request #1847 from gchq/dependabot/npm_and_yarn/backend/ty…
Browse files Browse the repository at this point in the history
…pes/jsonwebtoken-9.0.8

Bump @types/jsonwebtoken from 9.0.7 to 9.0.8 in /backend
  • Loading branch information
PE39806 authored Feb 4, 2025
2 parents c5f6b3a + c9098e6 commit da41ba9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
17 changes: 13 additions & 4 deletions backend/package-lock.json

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

2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"@types/cls-hooked": "^4.3.9",
"@types/config": "^3.3.5",
"@types/express": "^4.17.21",
"@types/jsonwebtoken": "^9.0.7",
"@types/jsonwebtoken": "^9.0.8",
"@types/lodash-es": "^4.17.12",
"@types/mjml": "^4.7.4",
"@types/mongoose-delete": "^1.0.6",
Expand Down
4 changes: 2 additions & 2 deletions backend/src/routes/v1/registryAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import bodyParser from 'body-parser'
import { createHash, X509Certificate } from 'crypto'
import { NextFunction, Request, Response } from 'express'
import { readFile } from 'fs/promises'
import jwt from 'jsonwebtoken'
import jwt, { SignOptions } from 'jsonwebtoken'
import { stringify as uuidStringify, v4 as uuidv4 } from 'uuid'

import audit from '../../connectors/audit/index.js'
Expand Down Expand Up @@ -106,7 +106,7 @@ async function encodeToken<T extends object>(data: T, { expiresIn }: { expiresIn
kid: await getKid(),
alg: 'RS256',
},
},
} as SignOptions,
)
}

Expand Down

0 comments on commit da41ba9

Please sign in to comment.