I want my users to always have access to database, and I’m using anonymous auth for that. Users can also login via facebook or google.
When user logs in, his anonymous account is converted to a social network (fb/google) account. User can then decide to log out, and when he does – he is given a new anonymous user.
If he logs in back again with his old facebook account, that new anonymous user is left in the list of users and never used again, because user is given back his social-firebase-account
How can I make sure I don’t have this plenthora of dead anonymous users in the firebase?
"auth != null"? this will also allow your users to access database - Amit Upadhyay