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
Post a Comment