Mongoose Connection Authentication vs. MongoDB Driver Pooled Credential Persistence
Mongoose’s `mongoose.connect()` options let you specify `user`, `pass`, `authSource` and `authMechanism` to enforce least‑privilege access, while the underlying MongoDB driver maintains a pooled connection cache that may retain authentication state after credentials change. The current behavior raises a security gap: unless the application forces a reconnect