I'm developing an app with ionic 3 and Firebase ... In the Realtime Database rules, the problem arises: I try put the rules pro type "user", but the following error appears:
ERROR Error: Uncaught (in promise): Error: PERMISSION_DENIED: Permission denied
ERROR Error: permission_denied at / orders: Client does not have permission to access the desired data.
Rule structure:
{
"rules": {
"users": {
"$uid": {
".read": "$uid === auth.uid",
".write": "$uid === auth.uid"
}
}
}
}