Closed knilink closed 7 years ago
Most of the times other middlewares may have already setup external store in the context. It will be very convenient if the session store can directly access these resources. For example
get(sid, ctx) { return ctx.db.session.findOne({sid}) }
That's a good idea! I think it is easy to pass the context to the session store, and I will do it soon. Thanks! 😄
context
Most of the times other middlewares may have already setup external store in the context. It will be very convenient if the session store can directly access these resources. For example