Login problems because of firebase database rules -


my firebase database has following rules:

{   "rules": {          ".read": "auth == null",          ".write": "auth != null"              } } 

due not able login app though using valid email id , password. when change rules 1 below, things work fine.

{   "rules": {          ".read": "auth != null",          ".write": "auth != null"              } } 

my app has requirement in users need read value of specific child stored inside database if not authenticated users. changing rules ".read": "auth == null" causing login problem. should in case?

"auth == null" means user logged out , logged out users can read data. if want give access anyone, set ".read": true.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -