I have edited the rules in my firebase real-time database as follows:
{
"rules": {
"poyntkds": {
"kdsOrderStatus": {
"$uid":{
".read":"$uid === $uid",
".write":"$uid === $uid",
},
".indexOn": ["id", "forDate"]
}
}
},
}
I think by doing this I am allowing only the particular merchant($uid) to have access to write/read his data. But still, I am getting emails that the firebase rules are not secure. Is there a better way to improve the security for my database?