Add Custom user Property through firebase function
问题 Currently in our realtime database, we have a planDetails node for each uid that has fields like startDate , endDate , planType . I want to track the number of users whose premium plan is active. I am trying to do this by making a firebase function that runs daily and updates a boolean custom user property, say isPremiumActive , to either true or false. I cannot just track the users who have purchased the premium plan because there are many who take the plan once and then don't renew it.