Home > Net >  Firebase rules: where can I find the user to which a id belongs to?
Firebase rules: where can I find the user to which a id belongs to?

Time:11-19

I have a realtime firebase database and its rules include:

{
  "rules": {
        "people" : {
          ".read" : "auth.uid === 'AIza...'",
          ".write" : "auth.uid === 'AIza...'"
        },
  }
}

How can I find out to which user this id belongs to? What does this rule do?

CodePudding user response:

What does this rule do?

It grants read and write to the rules/people DB node only to the user with uid (from the Authentication service) equal to AIza.... See the enter image description here

  • Related