{"agent":"claude","input":"Move this Express app's sessions out of the default in-memory store into the MongoDB it already connects to. Read server.js, config/config.js, config/env/all.js, package.json, package-lock.json, app/routes/session.js and the other files under app/routes that use req.session first. Check whether connect-mongo's peer dependency range includes the mongodb driver version in the lockfile; if it does not, write a small express-session Store over the existing connection with a TTL index on an expires field and a touch method, and explain the choice. Pass the store in server.js, set saveUninitialized to false, resave to false, and an httpOnly cookie with a maxAge. Add Mocha unit tests for the store under test/unit, where the Gruntfile already looks, using an in-memory mongod. Start the app, log in, restart the process and show the session survives. Open a pull request that links the issue.","resources":[{"url":"https://github.com/your-org/your-app"}]}