I am trying to write on firebase function some data to DB when some http triggers ,my issue I didn\'t find any examples how is it possible to do without admin permission because
You're looking for event.data.ref
. From the reference documentation:
Returns a Reference to the Database location where the triggering write occurred. This
Reference
has the same end-user permissions as the client that did the write. So, if an unauthenticated client did the write, thisReference
is unauthenticated. If the client that did the write is authenticated as a certain Firebase Auth user, thisReference
is authenticated as that same user.