Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
flash error
Error: req.flash() requires sessions
at Error (<anonymous>)
at IncomingMessage._flash [as flash] (/code/node/nodejs-authenticator-starter/node_modules/connect-flash/lib/flash.js:60:41)
at app.use.bodyParser.urlencoded.extended (/code/node/nodejs-authenticator-starter/index.js:34:43)
at Layer.handle [as handle_request] (/code/node/nodejs-authenticator-starter/node_modules/express/lib/router/layer.js:82:5)
at next (/code/node/nodejs-authenticator-starter/node_modules/express/lib/router/route.js:110:13)
at Route.dispatch (/code/node/nodejs-authenticator-starter/node_modules/express/lib/router/route.js:91:3)
at Layer.handle [as handle_request] (/code/node/nodejs-authenticator-starter/node_modules/express/lib/router/layer.js:82:5)
at /code/node/nodejs-authenticator-starter/node_modules/express/lib/router/index.js:267:22
at Function.proto.process_params (/code/node/nodejs-authenticator-starter/node_modules/express/lib/router/index.js:321:12)
at next (/code/node/nodejs-authenticator-starter/node_modules/express/lib/router/index.js:261:10)
at /code/node/nodejs-authenticator-starter/node_modules/connect-flash/lib/flash.js:21:5
at Layer.handle [as handle_request] (/code/node/nodejs-authenticator-starter/node_modules/express/lib/router/layer.js:82:5)
at trim_prefix (/code/node/nodejs-authenticator-starter/node_modules/express/lib/router/index.js:302:13)
at /code/node/nodejs-authenticator-starter/node_modules/express/lib/router/index.js:270:7
at Function.proto.process_params (/code/node/nodejs-authenticator-starter/node_modules/express/lib/router/index.js:321:12)
at next (/code/node/nodejs-authenticator-starter/node_modules/express/lib/router/index.js:261:10)
at expressInit (/code/node/nodejs-authenticator-starter/node_modules/express/lib/middleware/init.js:23:5)
at Layer.handle [as handle_request] (/code/node/nodejs-authenticator-starter/node_modules/express/lib/router/layer.js:82:5)
at trim_prefix (/code/node/nodejs-authenticator-starter/node_modules/express/lib/router/index.js:302:13)
at /code/node/nodejs-authenticator-starter/node_modules/express/lib/router/index.js:270:7
at Function.proto.process_params (/code/node/nodejs-authenticator-starter/node_modules/express/lib/router/index.js:321:12)
at next (/code/node/nodejs-authenticator-starter/node_modules/express/lib/router/index.js:261:10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment