Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: req.flash is not a function #316

Closed
MrRowey opened this issue Dec 29, 2021 · 0 comments
Closed

TypeError: req.flash is not a function #316

MrRowey opened this issue Dec 29, 2021 · 0 comments
Labels
Dependencies Pull requests that update a dependency file

Comments

@MrRowey
Copy link
Member

MrRowey commented Dec 29, 2021

TypeError: req.flash is not a function
at allFailed (/code/node_modules/passport/lib/middleware/authenticate.js:131:15)
at attempt (/code/node_modules/passport/lib/middleware/authenticate.js:180:28)
at Strategy.strategy.fail (/code/node_modules/passport/lib/middleware/authenticate.js:302:9)
at loaded (/code/node_modules/passport-openidconnect/lib/strategy.js:83:21)
at SessionStore.verify (/code/node_modules/passport-openidconnect/lib/state/session.js:71:11)
at Strategy.authenticate (/code/node_modules/passport-openidconnect/lib/strategy.js:254:24)
at attempt (/code/node_modules/passport/lib/middleware/authenticate.js:366:16)
at authenticate (/code/node_modules/passport/lib/middleware/authenticate.js:367:7)
at Layer.handle [as handle_request] (/code/node_modules/express/lib/router/layer.js:95:5)
at next (/code/node_modules/express/lib/router/route.js:137:13)

Context: flash used to be a function to show a flash message after an activity.
E.g. you login with wrong password you get redirected to login with a flash messages telling you login failed.
But for some reason these flash method is suddenly not existing anymore and it seems it was moved to a different package

@MrRowey MrRowey added the Dependencies Pull requests that update a dependency file label Dec 29, 2021
@MrRowey MrRowey added this to the v1.14 milestone Jan 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

1 participant