Below is the code which allows the user to store data into Firestore. The problem is, the uploaded data is viewable for all the users logged into the app.
How would I be ab
You would need to add a firestore rule to prevent a user from adding data to another user. Just check the auth userid in firestore and compare it to the userid on the document.