Settings and activity
4 results found
-
23 votesLuiz Americo Pereira Camara supported this idea ·
-
116 votesLuiz Americo Pereira Camara supported this idea ·
-
29 votes
An error occurred while saving the comment Luiz Americo Pereira Camara supported this idea · -
18 votesLuiz Americo Pereira Camara supported this idea ·
The title is not accurate. context.auth is only provided in realtime database event handlers.
Cloud Functions Firestore triggers (the equivalent to realtime database event handlers) do not have context.auth neither in 1st gen nor in 2nd gen.
A more accurate title would be "Create a context.auth for firestore triggers like in realtime database event handlers"
Also, this is same as https://firebase.uservoice.com/forums/948424-general/suggestions/46611049-auth-oncreate-and-ondelete-triggers-for-v2-functio
As for use case, i need this feature to create audit logs (who created, deleted, updated an entity). Currently i need to pass the user id in every call that updates data, polluting the document structure.