MCPcopy Create free account
hub / github.com/socketstream/socketstream / sessionMiddleware

Function sessionMiddleware

lib/http/index.js:132–134  ·  view source on GitHub ↗
(req,res,next)

Source from the content-addressed store, hash-verified

130
131 // wrapped to allow using the middleware before the strategy is set
132 function sessionMiddleware(req,res,next) {
133 return ss.session.strategy.sessionMiddleware? ss.session.strategy.sessionMiddleware(req,res,next) : next();
134 }
135};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected