Can I get an ID for a Firebase function (a database trigger) to use with Firebase Rules? I need to allow only a Firebase function to write to the database.
Update:
To clarify, I am using a Trigger Database Firebase function, and I want to allow only that function to write to the database, but allow users to read. I tried this approach Allowing write access only to Cloud Functions for Firebase but get an error The default Firebase app already exists.
. However this link is for Cloud Functions and not Firebase functions, and I couldn't find any other related questions.