Why does MongoDB server: bad auth : Authentication failed occured?
When I use dotenv in my code then this type of error occurred.I console log process.env and it works fine but when I use this in uri then it occurs bad auth error.What should I do Now?
[this is my cmd snipping shot][1]