Merge pull request #157 from Permissionless-Software-Foundation/ct-unstable

fix(jwt): Getting closer to root cause
This commit is contained in:
Chris Troutner
2021-08-07 12:23:27 -07:00
committed by GitHub
+2
View File
@@ -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.