Can't import user account with CLI Firebase auth:import command
<p>I need to import a list of users, with email and password, in Firebase. </p>

<p>I'm trying to import users in Firebase using the CLI auth:import command. (<a href="https://firebase.google.com/docs/cli/auth-import" rel="nofollow noreferrer">https://firebase.google.com/docs/cli/auth-import</a>) </p>

<p>I've choosed the <strong>HMAC_MD5</strong> hash-algo, </p>

<p>I'm using <strong>helpmeplease</strong> as secret string for encritption -> in Base64 becames <strong>aGVscG1lcGxlYXNl</strong> </p>

<p>I'm using <strong>mypass</strong> as a test password: crypted with HMAC_MD5 and secret "helpmeplease" it becames <strong>3a52377f6635d298436013953a1ce4dd</strong> and in Bas64 becames <strong>M2E1MjM3N2Y2NjM1ZDI5ODQzNjAxMzk1M2ExY2U0ZGQ</strong>= </p>

<p>I'm using a users.json </p>

<pre><code>  {    "users": [ 

    { 

      "localId": "9997", 

      "email": "test@test.com", 

      "passwordHash": "M2E1MjM3N2Y2NjM1ZDI5ODQzNjAxMzk1M2ExY2U0ZGQ=", 

      "displayName": "9997", 

    }

  ]  }
</code></pre>

<p>I use the command:</p>

<pre><code>**firebase auth:import --hash-algo='HMAC_MD5' --hash-key='aGVscG1lcGxlYXNl' --project='my-project-name-test' users.json** 
</code></pre>

<p>and the result is: </p>

<p><em>Processing users.json (194 bytes)</em> </p>

<p><em>Starting importing 1 account(s).</em></p>

<p>✔ <strong>Imported successfully</strong>. </p>

<p>and the user is imported in the users database. </p>

<p>BUT .. when I try to login using the 
<strong>auth().signInWithEmailAndPassword('test@test.com', 'mypass')</strong> .. I get this error: </p>

<p><strong><em>{ [Error: The password is invalid or the user does not have a password.] 
code: 'auth/wrong-password',</em></strong></p>

<p><strong><em>message: 'The password is invalid or the user does not have a password.' }</em></strong> </p>

<p>I can't figure out what's wrong.. Can you help me? </p>

<p>Thanks</p>