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
In the README file it says:
Make sure your express app is using sessions:
.use(store.sessionMiddleware ...
I think this doesn't work anymore in derby0.5, and instead we have:
.use(express.session ...
I did everything in the README file (I think...) but I get an error trying to use derby-auth:
Error: req.flash() requires sessions
at Error (:null:null)
at IncomingMessage._flash as flash
at Object.handle (node_modules/derby-auth/middleware.coffee:52:5, :54:39)
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.handle (node_modules/derby-auth/node_modules/connect-flash/lib/flash.js:21:5)
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.expressInit as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.query as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Function.app.handle (node_modules/express/node_modules/connect/lib/proto.js:198:3)
at Object.fn as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.modelMiddleware as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.middleware as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.scriptsMiddleware as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.compress as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.favicon as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.expressInit as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.query as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Function.app.handle (node_modules/express/node_modules/connect/lib/proto.js:198:3)
at Server.app (node_modules/express/node_modules/connect/lib/connect.js:65:37)
at Server.EventEmitter.emit (events.js:98:17)
at HTTPParser.parser.onIncoming (http.js:2045:12)
at HTTPParser.parserOnHeadersComplete as onHeadersComplete
at Socket.socket.ondata (http.js:1935:22)
at TCP.onread (net.js:524:27)
The text was updated successfully, but these errors were encountered:
Also, take caution with this branch - it's gonna be changing a lot soon, might be migrating users.auth to auth top-level collection due to this and this
In the README file it says:
Make sure your express app is using sessions:
.use(store.sessionMiddleware ...
I think this doesn't work anymore in derby0.5, and instead we have:
.use(express.session ...
I did everything in the README file (I think...) but I get an error trying to use derby-auth:
Error: req.flash() requires sessions
at Error (:null:null)
at IncomingMessage._flash as flash
at Object.handle (node_modules/derby-auth/middleware.coffee:52:5, :54:39)
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.handle (node_modules/derby-auth/node_modules/connect-flash/lib/flash.js:21:5)
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.expressInit as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.query as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Function.app.handle (node_modules/express/node_modules/connect/lib/proto.js:198:3)
at Object.fn as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.modelMiddleware as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.middleware as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.scriptsMiddleware as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.compress as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.favicon as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.expressInit as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.query as handle
at next (node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Function.app.handle (node_modules/express/node_modules/connect/lib/proto.js:198:3)
at Server.app (node_modules/express/node_modules/connect/lib/connect.js:65:37)
at Server.EventEmitter.emit (events.js:98:17)
at HTTPParser.parser.onIncoming (http.js:2045:12)
at HTTPParser.parserOnHeadersComplete as onHeadersComplete
at Socket.socket.ondata (http.js:1935:22)
at TCP.onread (net.js:524:27)
The text was updated successfully, but these errors were encountered: