Skip to content

Commit 1b169c6

Browse files
committed
#1502 put comment into pr
1 parent 07319a5 commit 1b169c6

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/backend/src/utils/auth.utils.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ export const requireJwtProd = (req: Request, res: Response, next: NextFunction)
3737

3838
if (!token) return res.status(401).json({ message: 'Authentication Failed: Cookie not found!' });
3939

40-
//uses the VerifyCallback type in the index.d.ts file for err and decoded types.
41-
//Only jwtPayload of the decoded types has a userID, so other types throw an error
4240
jwt.verify(token, TOKEN_SECRET, (err: VerifyErrors | null, decoded: string | JwtPayload | undefined) => {
4341
if (err) return res.status(401).json({ message: 'Authentication Failed: Invalid JWT!' });
4442

0 commit comments

Comments
 (0)