How to Secure Firebase Database in Sketchware Pro | Firebase Security Rules | Sketch Store

0

   How to Secure Firebase Database in Sketchware Pro | Firebase Security Rules | Sketch Store


Firebase Security Rules



(ads1)

Codes - 



1. No Security:


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



2. Close server (No access):


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



3. Only Authenticated Users can read & write the data:


{
  "rules": {
    ".read": "auth != null",
    ".write": "auth != null"
  }
}



4. Only user can read & write his own data:


{
  "rules": {
    "posts": {
       "$uid": {
         ".read": "$uid === auth.uid",
         ".write": "$uid === auth.uid"
       }
     }
   }
}



5. Only Admins can read & write the data:


{
 "rules":{
   "Users":{
    ".read": true,
    ".write": "root.child('badges/admin/' + auth.uid).exists()"
        }
    }
}



6. Only Particular User can write:


{
 "rules":{
    ".read": true,
    ".write": "auth.uid == 'paste Your UID' "
      }
}




Project Download - coming


Sketchware Pro Download - https://tei.ai/bBPe1

(ads2)

Tutorial Video - 

Coming



📸 Social Media


Instagram 👉 https://www.instagram.com/sketch_store_yt

Tags

Post a Comment

0Comments
Post a Comment (0)

#buttons=(Accept !) #days=(20)

Our website uses cookies to enhance your experience. Learn More
Accept !