Bad auth : authentication failed MongoDB Atlas

Hi community,

I created a database project and then tried to connect it with Compass as instructed. It did not work. After writing the password after removing the <>. It said “bad auth”. Any clues how to fix this in 2023?
Or any community question you can recommend where this problem was answered well?

Many thanks

Bad auth means wrong user id or password
Have you created DB user?
Use that user to login to your DB
Try with mongosh shell if you can connect or not