passport-oauth2
passport-oauth2 copied to clipboard
req.connection can be null
req.connection
(deprecated alias of req.socket
, see https://github.com/jaredhanson/passport-oauth2/issues/178) can be null
, causing a null pointer exception when reconstructing a request URL.
See upstream discussion in https://github.com/nodejs/undici/issues/1115 and https://github.com/nodejs/node/issues/41011.