Summary
The auth service requires redis but does not list it in package.json dependencies. This will throw MODULE_NOT_FOUND at runtime.
Affected File
services/auth-service/package.json
Root Cause
The code at services/auth-service/index.js:13 does:
const redis = require('redis');
But redis is not listed in dependencies or devDependencies in package.json. When the service starts, Node.js cannot find the module and throws:
Error: Cannot find module 'redis'
Impact
- The auth service fails to start
- All authentication operations that use Redis (session caching, rate limiting, WebAuthn challenge storage) are unavailable
- The entire application is inaccessible since auth is a critical dependency
Fix Required
Add redis to package.json dependencies:
"dependencies": {
...
"redis": "^4.6.0",
...
}
Summary
The auth service requires
redisbut does not list it inpackage.jsondependencies. This will throwMODULE_NOT_FOUNDat runtime.Affected File
services/auth-service/package.jsonRoot Cause
The code at
services/auth-service/index.js:13does:But
redisis not listed independenciesordevDependenciesinpackage.json. When the service starts, Node.js cannot find the module and throws:Impact
Fix Required
Add
redistopackage.jsondependencies: