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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -