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?
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With