Skip to content

Commit

Permalink
fix(Authentication): log error when token verification fails
Browse files Browse the repository at this point in the history
  • Loading branch information
chimpdev committed Nov 1, 2024
1 parent 31887a6 commit e6049a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ module.exports = class Server {

next();
} catch (error) {
logger.error('There was an error verifying the token:', error);
response.clearCookie('token');

return response.sendError('Unauthorized', 401);
Expand Down

0 comments on commit e6049a6

Please sign in to comment.