UNPKG

@warp-works/warpjs-session-plugin

Version:
7 lines (5 loc) 218 B
module.exports = (req) => { const config = req.app.get('warpjs-config'); const Persistence = req.app.get('warpjs-persistence'); return new Persistence(config.persistence.host, config.persistence.name); };