Firebase Rules - Code

Someone could pass me a code of firebase rules, for good protection.
Where the rules the user can write data and read only their recorded data.

have you read this, this might help you

1 Like

{
“rules”: {
“users”: {
“$uid”: {
“.read”: “$uid === auth.uid”,
“.write”: “$uid === auth.uid”
}
}
}
}

it will work only for user who authenticated by email or phone by firebase auth

1 Like

there was a link posted by Vishwas, which you have not visited , and didnt read that , btw check this link

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.