Where does firebase save it's simple login users?

后端 未结 2 1325
北荒
北荒 2021-01-11 15:26

I am currently using firebase to make an ionic app. I am using firebase simple login for social auth (facebook, twi

2条回答
  •  北恋
    北恋 (楼主)
    2021-01-11 15:43

    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/ that contains the information for that user.

    See this section of the Firebase documentation that describes storing user data.

提交回复
热议问题