Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I seamlessly migrate users from Firebase Auth?

If one day I would have to replace Firebase with custom solution can I migrate authorized users from Firebase Auth to my system?

I am aware that Firebase allows to export all user data using Firebase Admin SDK but I'm curious about behavior of identity providers (Facebook, Google and Twitter). If my custom system would use the same providers API keys as Firebase Auth what would happen to my users?

Thanks for any help !

like image 347
Matis11 Avatar asked May 29 '17 08:05

Matis11


People also ask

How do I get all users from Firebase authentication?

If you want to view a list of users that has registered thru Firebase Auth, you may view them in https://console.firebase.google.com/ then go to your project and select authentication , in the Users list is all the users that have registered thru Firebase Auth. Save this answer. Show activity on this post.

Does Firebase Auth store user data?

Note that while Firebase provides us with a means of authentication, all of the authentication data is separate from our Firebase data and can't be queried. It is up to us to store any custom user data within Firebase manually.

Where are Firebase Auth users stored?

The user data for firebase authentication is stored in firebaseLocalStorageDb in IndexedDB . After login to website, if you delete firebaseLocalStorageDb , the login user data for firebase authentication is all deleted so you need to log in website again.


1 Answers

Firebase Auth provide a CLI SDK to download your accounts: https://firebase.google.com/docs/cli/auth#authexport

Firebase Auth uses SCRYPT to hash passwords. If you decide to migrate, you can also contact Firebase support to help you with the process. As for linked OAuth providers, you can still implement that in your own system as the OAuth flow is a well known standard and the users should be portable. In general, Firebase Auth architecture is based on open standards and protocols that are widely used in the industry. The advantage is that Firebase Auth manages all that complexity for you for free.

like image 145
bojeil Avatar answered Oct 05 '22 07:10

bojeil