Make context.auth and context.authType available to Firestore function triggers
22
votes
Sparky
shared this idea
-
David King commented
I've submitted this before on the old system.
Our use case is for an auditing feature, whereby we track who made document changes over time.
We managed to roll our own solution, but it's very complex / brittle: we must to add the user and timestamp to every Firestore document update. If this feature was implemented, it could be performed entirely on the backend.