Guys please anyone help me to out I am writing a fire base rule & i want it should be secure i have used firebase authentication and specified a folder for each user where his data is stored i just want that only that perticular user can access his folder my rule is
{
"rules": {
"users": {
"$uid": {
".read": "auth.uid == $uid",
".write": "auth.uid == $uid"
}
}
}
}
in this rule i am getting two problem
1.new user data cant be wriiten in users node
2. since read is false so in my app its showing an error which is permission denied