I've been reading Firebase Realtime Database Security Rules guides (https://firebase.google.com/docs/database/security), and I'm a bit confused with regards to should I keep the UID generated by the Firebase Auth (lets say if my App users use Facebook to authenticate themselves) secret? I have this kind of data structure:
- users
- UID
- Lots of nodes of personal data to be read/written by the given user only.
- UID
So if some malicious hacker gets hold of some UIDs, will he be able to read/write the personal users' data? As far as I can see, if someone know the UID, he/she can setup a request and pretend to be authenticated as that user? Or am I missing something here?
Many thanks!