diff --git a/src/middleware/jwt-auth.js b/src/middleware/jwt-auth.js index 4977998..a34c425 100644 --- a/src/middleware/jwt-auth.js +++ b/src/middleware/jwt-auth.js @@ -12,6 +12,8 @@ // req.locals.jwtToken property. const getTokenFromHeaders = (req, res, next) => { try { + console.log('req.headers: ', req.headers) + // Only executes if the authorization header exists. if (req.headers.authorization) { // Retrieve the auth string from the header object.