I have installed dotenv while creating the mongodb file. then i got my user and password. to secure that i used .env file like
"${process.env.DB_USER}:${process.env.DB_PASS}"
then it is showing me bad auth. along with that it is showing codeName:
'AtlasError',
[Symbol(errorLabels)]: Set(1) { 'HandshakeError' } this.
console.log(`"${process.env.DB_USER}:${process.env.DB_PASS}"`)say?