ExpressGateway / express-gateway

A microservices API Gateway built on top of Express.js
https://www.express-gateway.io
Apache License 2.0
2.96k stars 344 forks source link

cannot read property toLowerCase #1026

Open philipsjp26 opened 3 years ago

philipsjp26 commented 3 years ago

(node:26957) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'toLowerCase' of undefined at Object.extractors.fromAuthHeaderWithScheme [as authScheme] (/media/philips/Dataku/app/backend_api_gateway/node_modules/passport-jwt/lib/extract_jwt.js:54:41) at module.exports (/media/philips/Dataku/app/backend_api_gateway/node_modules/express-gateway/lib/policies/jwt/jwt.js:11:52)

issue from when i use jwtExtractor: authScheme