When Firebase Rules Set Then Firebase Database Not Storing The Value

When I Set Firebase Rules To auth uid = user id then it doesn’t storing the value even if auth != null even it is not storing when rules set to true in write it doesn’t store when if read set to auth then it says permission denied even user logged in please help me

please add your blocks image

please check auth

1 Like

All Was Working Perfect And If Set Firebase Realtime Database To True Both Read And Write Then It Works If I Set Security Rules To Auth != Null Or Auth.uid === uid Then It Won’t Work
I Referred So Many Articles Related To AIA Builder Community I Saw That If User Got Token ID Then It’s Work And I Also Referred Firebase All Documents Please Help To Get Token ID

My old project rules like this

{
  "rules": {
      "NOTE": {
          "MASSAGE": {
              ".read": "true",
              ".write": "false"
          }
      },
        
        
        
        
        "EMAIL": {
          "$uid": {
                      ".read": "auth != null",
                      ".write": "$uid === auth.uid"
              },
        },
                
                
        
      "USER": {
          "$uid": {
            
              "DATA": {
                
                // User Account Status Rules
                "ACCOUNT_STATUS": {
                      ".read": "auth != null",
                      ".write": "$uid === auth.uid"
              },
                // User Private Email Rules
                "EMAIL": {
                      ".read": "auth != null",
                      ".write": "$uid === auth.uid"
              },
                
                // User Name Rules
                "NAME": {
                      ".read": "auth != null",
                      ".write": "$uid === auth.uid"
              },
                
                // User Sub Bio Rules
                "SUB_BIO": {
                      ".read": "auth != null",
                      ".write": "$uid === auth.uid"
              }
           },
             
            
            "POST": {

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

              
                  ".read": "$uid === auth.uid",
                  ".write": "$uid === auth.uid"
           },
            
             
             "P_DATA": {
                
               
                 "DOWNLOADS": {
                      ".read": "auth != null",
                      ".write": "auth != null"
              },
                
                "FOLLOWERS": {
                  
                  ".read": "auth != null",
                  ".write": "false",
                  
                      "$follower_id": {
                        
                        ".read": "auth != null",
                      ".write": "$follower_id === auth.uid"
                        
                      }
                      
              },
                "POSTS": {
                      ".read": "auth != null",
                      ".write": "$uid === auth.uid"
              }
               
               
           }, 
        }
     }
  }
}

No Issues In Firebase Rules I Set Correctly Even It compares uid to auth uid but when i debugging i see logs that firebase auth not get token id it gives null value means component error when i checked with kodular firebase auth it worked perfectly with my firebase rules but in niotron firebase component it doesn’t work so i had to report niotron admins or staff about this problem it is very important then all because securing database is important for every developer

I am using auth api. Here is more facility. But you need to more hard work to use this

https://firebase.google.com/docs/reference/rest/auth

Yes I Added Firebase Token As User Token ID
But When I Add Component Firebase Auth Get Token ID It Gives Error That It Save Null Value
I Tested In Kodular Samething It Works There So Problem Is Component Error

Is your block like this

Yes But Unable To Get Token Id error in “call Firebase Auth get userauthtoken” when I used it always give error of null value when I used it in Kodular it works perfectly please help to reach the issue to Niotron staff or Niotron Team We Need Urgent Fix On This Major Issue This Is

1 Like