Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Retrieve list of user from Firebase Authentication [duplicate]

How can I retrieve the list of users from Firebase Authentication? I can get the 'current' user but that's it. Or do I have to add users to database first and get the list from there?

like image 946
pb4now Avatar asked Sep 28 '16 20:09

pb4now


People also ask

How do you check if a user has already exists in Firebase authentication?

If you want to check if a user already exists, then you have to save that information either in Firestore or in the Realtime Database, and then simply perform a query to check if a particular phone number already exists. Unfortunately, you cannot check that in the Firebase console.

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

If you have a nodejs project, use the firebase auth:export to export users from Firebase Auth. Users can be exported in csv or json format:

firebase auth:export users.json --format=json --project projectname
like image 51
Madeyedexter Avatar answered Oct 27 '22 03:10

Madeyedexter