Open laurentpayot opened 1 year ago
I found a few problems with this issue:
Hey @laurentpayot, thanks for requesting! This is currently a limitation of all 2nd gen functions (Node or Python). A workaround for now is to use 1st gen functions for Auth onCreate
and onDelete
triggers. Note that 1st gen and 2nd gen functions can coexist side-by-side in the same file.
Thanks for your answer @jhuleatt. I did not know a mix of 1st and 2nd gen functions was possible. I will use this "workaround" for now. I’m still eagerly awaiting v2 auth triggers :wink:
Any updates on this?
Seems to be the only ones missing now, do we have an ETA on when these will make it into v2?
+1
+1
+1
+1
+1
+1
+1
+1
When can we expect this?`
+1
I believe we can use a HTTP v2 function for blocking "Before the user is created" https://firebase.google.com/docs/auth/extend-with-blocking-functions?gen=2nd. It is a workaround for onCreate callback.
+1
@cuong0993 > I believe we can use a HTTP v2 function for blocking "Before the user is created" https://firebase.google.com/docs/auth/extend-with-blocking-functions?gen=2nd. It is a workaround for onCreate callback.
Yes, I try it but this trigger not working in emulators ... (or i don't find how to) and i believe acces right is limited (for interact with firestore or other)
I any one know a solution for use blocking functions in emulators
+1 for Python support
+1
+1
+1
Will this be implemented at some point? The docs say the following -
Note: Cloud Functions for Firebase (2nd gen) does not provide support for the events and triggers described in this guide. Because 1st gen and 2nd gen functions can coexist side-by-side in the same source file, you can still develop and deploy this functionality together with 2nd gen functions.
But they still urge us to upgrade all our functions to v2...
Yes, please add this. I updated my firebase functions to the latest, now I get firebase.runWith is not a function error. How can you say it co-exists when it cant after you upgrade to the latest version of firebase-functions?
+1
+1
Please add Authentication onCreate and onDelete triggers for v2 functions in the SDK, this is really missing. :pray:
Related issues
https://github.com/firebase/firebase-functions/issues/1213 https://github.com/firebase/firebase-functions/issues/1381
Version info
firebase-functions: v4.3.1
firebase-tools: 11.29.0