Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: Improve auth.createUser to support importing users from a different service #158

Closed
jpreynat opened this issue Dec 14, 2017 · 4 comments

Comments

@jpreynat
Copy link

After migrating our app from Heroku to a fully hosted Firebase application, we need to migrate our users database and login capabilities to this new Firebase app.
However, we want our migration to be incremental, since our DB contains 400000+ users.

We have been successfully testing this approach manually with firebase-tools's auth:import command. However, since our migration process is meant to be totally automated and executed in a cloud function of our app, firebase-tools cannot be used.

The better way for us to achieve this would be to improve the admin SDK auth.createUser() method, or alternatively add an auth.importUser() method, to support creating an user with the same set of informations than the auth:import command, especially the ability to pass the user's password hash instead of the unencrypted password and a prior creation date.

Ideally, this method would also allow passing the user's login providers, though this can be achieved later using the Node Firebase SDK for now.

@bojeil-google
Copy link
Contributor

Similar functionality is on our list of features to support. Stay tuned.

@SamyPesse
Copy link

SamyPesse commented Feb 12, 2018

@bojeil-google Any news ?

For now we are using firebase-apparatus to run the import.

@bojeil-google
Copy link
Contributor

It's in the pipeline. A few things came up like refresh token revocation which was higher priority for security reasons.

@bojeil-google
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants