Currently, I am trying to import users with already hashed passwords into Firebase by solely using the 'firebase-tools' package. I am able to list my current projects by using the command:
client.list({
token:fbToken
}).then(function(data){
console.log(data);
});
but am unable to import any users when trying to use the auth:import command.
client.auth:import({
account_file: "driverList.json",
project:"projectName",
token: fbToken,
hash-algo: "BCRYPT"
}).then(function(data){
console.log(data);
});
I believe that this is because the CLI syntax for auth import is not easily translatable to javascript like the other one word commands (list, logout, etc.). I've tried looking at the documentation, but had no luck.
Does anyone have any idea how to go about this issue? Here is a link to the git repo.