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
Post a Comment