Skip to content

Commit

Permalink
cleanup jwt verification error log
Browse files Browse the repository at this point in the history
  • Loading branch information
sainak committed May 30, 2024
1 parent d5ff615 commit c0f3031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const jwtAuthNoVerify = (): RequestHandler => {
req.user.id = payload.sub;
}
} catch (error: any) {
console.log(error);
console.warn(`JWT verification failed: ${error.code}`);
}
}
next();
Expand Down

0 comments on commit c0f3031

Please sign in to comment.