title: I am using node js with mongodb got authentication error when to connect 'MongoError: Authentication failed'
body: <p>Hi I'm getting the following error</p>
  
  <blockquote>
    <p>MongoError: Authentication failed.</p>
  </blockquote>
  
  <p>After 15-20 days after to create admin user.</p>
  
  <p>I am using this query to create admin user for db.</p>
  
  <pre><code>use sampleDb
  
  db.createUser({
      user: "unhuDevAdmin",
      pwd: "devpass123",
      roles: [ "readWrite", "dbAdmin" ]}
  );
  </code></pre>
  
  <p><code>sampleDB</code> is my db name.</p>
  
  <p>Mongo db version: v3.4.4</p>
  
  <p>At the time of creating of this user i can access my db and after 15-20 days got authentication error and lost my all data from db. I don't know why this happening again and again. </p>