Skip to content

Commit

Permalink
fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
arcogabbo committed Jun 1, 2022
1 parent b8e2dc9 commit 530fdc3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@types/cors": "^2.8.12",
"@types/express": "4.17.0",
"@types/jest": "^24.0.13",
"@types/jsonwebtoken": "7.2.7",
"@types/jsonwebtoken": "^8.5.8",
"@types/node": "10.14.1",
"@types/node-fetch": "^2.1.2",
"@types/node-forge": "^0.9.1",
Expand Down
4 changes: 2 additions & 2 deletions src/utils/jwt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ export const verifyToken = (
publicCert: NonEmptyString,
token: string,
issuer: NonEmptyString
): TE.TaskEither<Error, string | object> =>
): TE.TaskEither<Error, jwt.JwtPayload | string> =>
pipe(
TE.taskify<Error, object | string>(cb =>
TE.taskify<Error, jwt.JwtPayload | string>(cb =>
jwt.verify(token, publicCert, { algorithms: ["RS256"], issuer }, cb)
)(),
TE.mapLeft(E.toError)
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -629,10 +629,10 @@
resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee"
integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==

"@types/jsonwebtoken@7.2.7":
version "7.2.7"
resolved "https://registry.yarnpkg.com/@types/jsonwebtoken/-/jsonwebtoken-7.2.7.tgz#5dd62e0c0a0c6f211c3c1d13d322360894625b47"
integrity sha512-lq9X76APpxGJDUe1VptL1P5GrogqhPCH+SDy94+gaBJw7Hhj6hwrVC6zuxAx2GrgktkBuwydESZBvPfrdBoOEg==
"@types/jsonwebtoken@^8.5.8":
version "8.5.8"
resolved "https://registry.yarnpkg.com/@types/jsonwebtoken/-/jsonwebtoken-8.5.8.tgz#01b39711eb844777b7af1d1f2b4cf22fda1c0c44"
integrity sha512-zm6xBQpFDIDM6o9r6HSgDeIcLy82TKWctCXEPbJJcXb5AKmi5BNNdLXneixK4lplX3PqIVcwLBCGE/kAGnlD4A==
dependencies:
"@types/node" "*"

Expand Down

0 comments on commit 530fdc3

Please sign in to comment.