Firebase simulate read denied

懵懂的女人 提交于 2019-12-11 15:14:54

问题


In my firebase project, I have implemented Google Authentication.

My firebase rules looks like the following:

{
  "rules": {
      "users": {
      "$uid": {
        ".read": "auth.uid == $uid",
        ".write": "auth.uid == $uid"
      }
    }
  }
}

The database has the following snapshot:

Everytime I try to simulate. Firebase says that the "Simulate read denied".

Any ideas that I am doing wrong here?


回答1:


I realised the problem. I was accessing "/users" but instead, I should be accessing "/users/$uid" to simulate rule.



来源:https://stackoverflow.com/questions/51646383/firebase-simulate-read-denied

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!