I would like to secure access to my realtime firebase for only one person after connecting.
I set as a rule condition if auth == “Admin UID” for read and write.
But I have an access problem despite having the correct password and email.
The person must have access to the entire database.
I think I have a problem transferring rights between firebase authentication and firebase realtime database. However I use a tokenID.
Thank you for your help because I don’t want to use this rule:
“.write”: “$uid === auth.uid”
At least not with a project bucket $uid
you could try something like this
Authenticated users can read and only those whose ID is within the AdmUsers node will be able to write
My database llike this :
here is my database:
I would like a specific user to be able to read and write in “Nom de la feuille”, “01listelot” and “02listemission”.
Others will only be able to read the data.
I have the user’s uid but how can I authorize it in the firebase rules.
Thank you for your answer
but I don’t have a useradmin tag.
I created the useradmin and put the person’s UID then made the rules.
But when I want to modify or create data, it does nothing.