You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: "routes.transactionCookie" is not allowed,
at module.exports.get (/usr/src/app/.yarn/virtual/express-openid-connect-virtual-9917d258a9/0/cache/express-openid-connect-npm-2.7.0-b65e4d8088-0fc538a46b.zip/node_modules/express-openid-connect/lib/config.js:222:11),
at auth (/usr/src/app/.yarn/virtual/express-openid-connect-virtual-9917d258a9/0/cache/express-openid-connect-npm-2.7.0-b65e4d8088-0fc538a46b.zip/node_modules/express-openid-connect/middleware/auth.js:28:18),
What was the expected behavior?
Run, without error.
Environment
Version of this library used: 2.7.0
Which framework are you using, if applicable:
Other modules/plugins/libraries that might be involved:
Any other relevant information you think would be useful:
The text was updated successfully, but these errors were encountered:
jeffrson
changed the title
Mismatch between types and implementation for transactionCookie?
Mismatch between types and implementation for transactionCookie
Feb 18, 2022
Describe the problem
The new types (2.7.0) require
transactionCookie
insideroutes
: https://github.com/auth0/express-openid-connect/blob/master/index.d.ts#L441However, in https://github.com/auth0/express-openid-connect/blob/master/lib/config.js#L83, transactionCookie is a top-level configuration, not contained in routes (https://github.com/auth0/express-openid-connect/blob/master/lib/config.js#L184), which leads to this error message:
TypeError: "routes.transactionCookie" is not allowed,
at module.exports.get (/usr/src/app/.yarn/virtual/express-openid-connect-virtual-9917d258a9/0/cache/express-openid-connect-npm-2.7.0-b65e4d8088-0fc538a46b.zip/node_modules/express-openid-connect/lib/config.js:222:11),
at auth (/usr/src/app/.yarn/virtual/express-openid-connect-virtual-9917d258a9/0/cache/express-openid-connect-npm-2.7.0-b65e4d8088-0fc538a46b.zip/node_modules/express-openid-connect/middleware/auth.js:28:18),
What was the expected behavior?
Run, without error.
Environment
The text was updated successfully, but these errors were encountered: