Firebase database rules

i want firebase realtime database secure rules with blocks
anyone can please tell

Take a look here:
METRIC RAT AI2 - Firebase with a Web Component

security rules

Please elaborate more.

Start here:

https://firebase.google.com/docs/rules

tag = to uid

{
  "rules": {
    "<ProjectBucket>": {
      "$uid": {
        ".read": true,
        // or ".read": "auth.uid != null" for only authenticated users
        ".write": "auth.uid == $uid"
      }
    }
  }
}

You cannot use the Firebase Experimental Component when you have secure rules in place, it will give you permissions errors.

creating


Screenshot 2024-06-19 114952

project bucket = users
uid = PyfiBgia9wYISbfR08CTrEU3XnA2
what is this = -O-j8MCe1c0pqVL-gGdV
tag = tag
value = value

GET

{"-O-j8MCe1c0pqVL-gGdV":{"tag":"value"}}

FROM THIS HOW TO GET ONLY VALUE

If you read my guide, you would see that using POST generates a timestamped alpha-numeric tag for your data. If you do not want that, and just want to store the tag:value, then use PUT.

thank you

FIRESTORE

Can please tell about this

security rules

Screenshot 2024-06-19 140444

error

Do you want to use Firestore ?

I know I have learnt from this

I want security rules

Check the block images

https://firebase.google.com/docs/firestore/security/get-started

from my guide:

You already posted that image. There is clearly something wrong with your rules / authentication / blocks.

Re-read the guides and documentation, try something different, then see what happens. If you still get an error, then show your rules, firebase console data, and your blocks.

Screenshot 2024-06-19 184534

Do you have a space after "Bearer " ?

You did not show this...

(Have you also tried this without security, as a first step into the dark world of Firestore?)

Yes I have not given space now it's working
Thank you so much