Skip to content

Commit

Permalink
fix(notifications): jwt middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
manuandru committed May 23, 2024
1 parent 735c5fa commit f079ebf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const JWTAuthenticationMiddleware = (
res: Response,
next: NextFunction
): void => {
const accessToken = req.cookies.jwt;
const accessToken = req.headers.authorization?.split(" ")[1];
if (!accessToken) {
const response = new JwtTokenMissingOrInvalid();
response.send(res);
Expand Down

0 comments on commit f079ebf

Please sign in to comment.