Tools: Firebase
Issue: Security with completely client-side code and exposing unique Ids
I've been really scratching my head on how to create a system to uniquely Id a user for basic user-user interactions.
Common examples - direct messaging a friend, adding a new contact ect...
There has to be a unique id being passed out to clients in order to establish those types of connections
The reason I am so tripped up is because in my mind I'm not suppose to be exposing any users uids(for security reasons it seems sketchy) and therefore I would need to give a user multiple unique ids( one for a group, or for each connection,ect).
So am I wrong and I can use the uid so long as I set up security rules? I'm sure there has to be be a super simple answer to this one.