I am currently using firebase
to make an ionic app
. I am using firebase simple login
for social auth
(facebook, twitter, email & password
). The auth works perfectly, it $broadcasts
the authed user
. However it doesn't seem to create a user in the actual firebase db
. I was wondering how I can get the users that have been authed
using my app
.
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.
For most of the authentication protocols it supports, Firebase doesn't store user data anywhere. Even for the protocols where it does store data (I only know of email+password doing this), it stores this information in a place that your application can't access (though you can find those users in the dashboard of your Firebase).
To quote the Firebase documentation:
It does not store profile or user state in your Firebase. To persist user data you must save it to your Firebase.
What most applications end up doing, is keeping a list of users inside their Firebase that they manage themselves. So when a user first authenticates with the application, it creates a node under /users/<uid>
that contains the information for that user.
See this section of the Firebase documentation that describes storing user data.
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