Only allow writes from service account in Firebase? -


i make writes firebase data node.js server deny writes other client. other client should allowed read access. best approach this? need authenticate node.js server special admin account , setup security rule specific account or there better way accomplish this? thanks!

in node server use admin sdk log in service account

and in database rules use this:

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

Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -