What happens to Firebase anonymous users?

前端 未结 3 1581
囚心锁ツ
囚心锁ツ 2020-12-08 06:33

I want to know what will happen to the users of my app that I used anonymous sign in method for them.

The Firebase documentation is really BAD and didn\'t explain ev

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-08 06:50

    If you'd like anonymous users to be removed from your user list, you'll have to write a service to do that for you.

    Since firebase doesn't provide a way to list registered users, you'll have to make sure you're storing some sort of user list in the database. You can then use the node.js admin sdk to get user data, check if the user is anonymous, and find when the user was created. For performance reasons, you may wish to store this information in a special area of your database and retrieve it all at once. Once you've identified a stale anonymous user they can be easily deleted.

提交回复
热议问题