V
V
Vitaly2021-01-13 13:11:03
React
Vitaly, 2021-01-13 13:11:03

How to set up permissions for a specific user to access a specific branch in firebase realtime database?

All the best!
Please tell me, let's say there is such a structure

5ffec53902104320410977.png

And let's say there are registered users (Authentication - Users):
[email protected] , [email protected] , [email protected]
And you need to specify something in the database rules that user1 has @mail.com had read/write permissions only to the dataMass1 branch , [email protected] only had dataMass2 and [email protected] respectively only dataMass3

Applications will be implemented on React.

P.S. it is also planned to create such rules when registering a user, well, I will probably do this through the firebase cloud function, now at least understand how the access control rules should look

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question