diff --git a/server/src/server.js b/server/src/server.js index d970312b..0e28f043 100644 --- a/server/src/server.js +++ b/server/src/server.js @@ -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);