0

I would like to know how to create rules which allow firebase database users read and write data to database with emails end ....@company.com. I used example from official documentation and changed it:

 {
  "rules": {
    "users": {
      "email"{
        ".write": ""
        ".read": ""
      }
    }
  }
}

but i do know how to write email check here within rules.

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
Uladz Kha
  • 2,154
  • 4
  • 40
  • 61
  • 1
    You will want to use `auth.token` for that. The documentation shows an example here: https://firebase.google.com/docs/reference/security/database#authtoken – Doug Stevenson Mar 17 '20 at 20:18
  • @DougStevenson yeah, tahnk you, i just found this example, you can check if you'd likehttps://groups.google.com/forum/#!topic/firebase-talk/DEPwABMsDVk – Uladz Kha Mar 17 '20 at 20:22

0 Answers0