--
Hi,
I need to import a list of users, with email and password, in firebase.
I'm trying to import users in firebase using the CLI auth:import command. (https://firebase.google.com/docs/cli/auth-import)
I've choosed the HMAC_MD5 hash-algo,
I'm using helpmeplease as secret string for encritption -> in Base64 becames aGVscG1lcGxlYXNl
I'm using mypass as a test password: crypted with HMAC_MD5 and secret "helpmeplease" it becames 3a52377f6635d298436013953a1ce4dd and in Bas64 becames M2E1MjM3N2Y2NjM1ZDI5ODQzNjAxMzk1M2ExY2U0ZGQ=
I'm using a users.json
{
"users": [
{
"localId": "9997",
"email": "te...@test.com",
"passwordHash": "M2E1MjM3N2Y2NjM1ZDI5ODQzNjAxMzk1M2ExY2U0ZGQ=",
"displayName": "9997",
}
]
}
I use the command:
firebase auth:import --hash-algo='HMAC_MD5' --hash-key='aGVscG1lcGxlYXNl' --project='my-project-name-test' users.json
and the result is:
Processing users.json (194 bytes)
Starting importing 1 account(s).
✔ Imported successfully.
and the user is imported in the users database.
BUT .. when I try to login using the auth().signInWithEmailAndPassword('tes...@test.com', 'mypass') .. I get this error:
{ [Error: The password is invalid or the user does not have a password.]
code: 'auth/wrong-password',
message: 'The password is invalid or the user does not have a password.' }
I can't figure out what's wrong.. Can you help me?
Thanks
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/3a225149-4f5f-4ba7-a3c1-cedc0d61fcb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.