I'll roughly explain the code of my app (react native with expo):
- I query firestore to get an X value of a certain document.
- on the client side I do the following: if X> = 100 then I query cloud storage to get a certain file, otherwise if X <100 I query it for another file.
Having one file rather than another is very important in terms of security. Do you think that step 1) can be altered (firestore response) or the malicious user can do something else to get the file he wants regardless of the value of X?