Skip to content

Commit b7c0fa0

Browse files
authored
fix(Authentication): log error when token verification fails (#122)
1 parent 31887a6 commit b7c0fa0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/src/server.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ module.exports = class Server {
122122

123123
next();
124124
} catch (error) {
125+
logger.error('There was an error verifying the token:', error);
125126
response.clearCookie('token');
126127

127128
return response.sendError('Unauthorized', 401);

0 commit comments

Comments
 (0)