Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Prabal864 committed Dec 23, 2024
1 parent a91b0eb commit 4f03aa2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/src/utils/token-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ export const verifyToken = async (req:Request, res:Response, next: NextFunction)

const token = req.signedCookies[`${COOKIE_NAME}`];
if(!token || token.trim() === ""){
return res.status(401).json({message:"Token Not Received"});
return res.status(401).json({message:"Token Not Received"}

);
}

return new Promise<void>((resolve,reject) => {
Expand Down

0 comments on commit 4f03aa2

Please sign in to comment.