Reading the firebase documentation I realized that I could modify the rules so that only specific access was available to each user in a particular branch.
{
"rules": {
"users": {
"$uid": {
".write": "$uid === auth.uid"
}
}
But I can not find the right way to do it, this is my data in firebase.
(assuming that authUid is the Auth.uid that it generates when authenticating with firebase)
these are my rules in that specific place, all the others are public
"usuarios": {
"$uid": {
".write": "$uid === auth.uid"
}
},
How can I make my rule valid using $ uid in my rules, so that only the user enters its corresponding branch and does not enter branches of other users?