So my situation is as follows. I have an external user ID that accesses a third party API. I need a users external ID in order to access that API. Every day I want to check through x amount of users and send them a push notification against certain data that comes from the 3rd party API but I’m sure this would get very expensive as my user base grows if by I have to look up all of these 3rd party IDs in Firestore every day.
What I’m thinking of doing is storing all of the 3rd party ID’s inside of a custom claim and running a firebase function every day to look these users up and process all the info accordingly. However a users 3rd party user ID is kind of sensitive info, so my question is would it be secure to store these IDs inside of a custom claim?