From 0ae02790a2e938e96a5b3a1b2eb559db864c89bd Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Sat, 7 Aug 2021 12:21:25 -0700 Subject: [PATCH] fix(jwt): Getting closer to root cause --- src/middleware/jwt-auth.js | 2 ++ 1 file changed, 2 insertions(+) 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.