Extra information about the use case/user story you are trying to implement
DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
Trace: DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
at module.exports (C:\Sites\website.com\node_modules\timed-out\index.js:9:17)
at EventEmitter. (C:\Sites\website.com\node_modules\openid-client\node_modules\got\index.js:244:5)
at Object.onceWrapper (events.js:299:26)
at EventEmitter.emit (events.js:209:13)
at makeRequest (C:\Sites\website.com\node_modules\cacheable-request\src\index.js:94:9)
at C:\Sites\website.com\node_modules\cacheable-request\src\index.js:104:14 {
name: 'DeprecationWarning',
code: 'DEP0066'
}
at process. (C:\Sites\website.com\app.js:45:13)
at process.emit (events.js:214:15)
at internal/process/warning.js:52:24
at processTicksAndRejections (internal/process/task_queues.js:75:11)
I'm submitting this issue for the package(s):
I'm submitting a:
Current behavior
Shows depreciation warning when setting up new ExpressOIDC
Expected behavior
not using depreciation.
Minimal reproduction of the problem with instructions
npm i @okta/oidc-middleware
const oidc = new ExpressOIDC({ issuer: _OKTA_URL + '/oauth2/default', client_id: _OKTA_CLIENT_ID, client_secret: _OKTA_CLIENT_SECRET, redirect_uri: 'http://localhost:3000/authorization-code/callback', appBaseUrl: 'http://localhost:3000', scope: 'openid profile' }); oidc.on('ready', () => { console.log(
Started!
); return; });Extra information about the use case/user story you are trying to implement
DeprecationWarning: OutgoingMessage.prototype._headers is deprecated Trace: DeprecationWarning: OutgoingMessage.prototype._headers is deprecated at module.exports (C:\Sites\website.com\node_modules\timed-out\index.js:9:17) at EventEmitter. (C:\Sites\website.com\node_modules\openid-client\node_modules\got\index.js:244:5)
at Object.onceWrapper (events.js:299:26)
at EventEmitter.emit (events.js:209:13)
at makeRequest (C:\Sites\website.com\node_modules\cacheable-request\src\index.js:94:9)
at C:\Sites\website.com\node_modules\cacheable-request\src\index.js:104:14 {
name: 'DeprecationWarning',
code: 'DEP0066'
}
at process. (C:\Sites\website.com\app.js:45:13)
at process.emit (events.js:214:15)
at internal/process/warning.js:52:24
at processTicksAndRejections (internal/process/task_queues.js:75:11)
Environment
Package Version: "dependencies": { "@okta/oidc-middleware": "^3.0.0", "express-session": "^1.17.0",...}
OS: Windows 10
Node version (
node -v
): 12.10.0Other: