{"agent":"claude","input":"Add TOTP two-factor authentication to this Express and Mongoose API. Read package.json, src/app.js, src/config/config.js, src/config/tokens.js, src/config/passport.js, src/models/user.model.js, src/models/token.model.js, src/services/auth.service.js, src/services/token.service.js, src/controllers/auth.controller.js, src/routes/v1/auth.route.js, src/validations/auth.validation.js, src/docs/components.yml, tests/utils/setupTestDB.js, tests/fixtures/user.fixture.js and tests/integration/auth.test.js first. Use otplib 13 (generateSecret, generate, verify, generateURI) and qrcode. Add a twoFactor subdocument on the user with a private secret, a pending secret, an enabled flag and bcrypt-hashed recovery codes; routes to set up, enable, disable and verify; a short-lived single-use twoFactor token type saved in the Token collection; and a login response that returns twoFactorRequired with that token when the flag is set, otherwise the same response as today. Guard against replaying a code inside the tolerance window. Extend the Joi schemas and the swagger comments. Write supertest integration tests next to the existing ones, generating codes with otplib in the test, start a MongoDB server in the sandbox, and run yarn test, yarn lint and yarn prettier. Open a pull request that quotes the test output.","resources":[{"url":"https://github.com/your-org/your-app"}]}