Database Login Permission Denied

Hello Friends I’m Working on a Project I Want to Do I Want the User to Pull the Database Data After Logging In With Authentication I Tried to Do Something But I’m Getting a Permission Error I would Appreciate It If You could Help



If you want to get data, then try this :

{
  "rules": {
    ".read": true,
    ".write": false
  }
}

If you want to store data, then try this :

{
  "rules": {
    ".read": false,
    ".write": true
  }
}

If you want to store and get data, Try this:

{
  "rules": {
    ".read": true,
    ".write": true
  }
}
1 Like
{
  "rules": {
    ".read": true,
    ".write": false
  }
}

{
“rules”: {
“.read”: “true”,
“.write”: “false”,

"$user_id": {
        "Users":{
          ".read": "auth.uid != null",
                                           
           ".write": "$user_id === auth.uid",
             
     }

Use Like This…