Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auth onCreate and onDelete triggers for v2 functions #1383

Open
laurentpayot opened this issue Apr 26, 2023 · 18 comments
Open

Auth onCreate and onDelete triggers for v2 functions #1383

laurentpayot opened this issue Apr 26, 2023 · 18 comments

Comments

@laurentpayot
Copy link

Please add Authentication onCreate and onDelete triggers for v2 functions in the SDK, this is really missing. 馃檹

Related issues

#1213
#1381

Version info

firebase-functions:
v4.3.1

firebase-tools:
11.29.0

@google-oss-bot
Copy link
Collaborator

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

@jhuleatt
Copy link
Contributor

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.

@laurentpayot
Copy link
Author

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鈥檓 still eagerly awaiting v2 auth triggers 馃槈

@lpellegr
Copy link
Contributor

Any updates on this?

@jjgriff93
Copy link

Seems to be the only ones missing now, do we have an ETA on when these will make it into v2?

@jacobg
Copy link

jacobg commented Nov 16, 2023

+1

7 similar comments
@dhutaryan
Copy link

+1

@emilioiz
Copy link

+1

@quirkles
Copy link

quirkles commented Dec 5, 2023

+1

@amacapas
Copy link

+1

@mvergarair
Copy link

+1

@Martinnord
Copy link

+1

@kafkas
Copy link

kafkas commented Jan 10, 2024

+1

@sebastianrueckerai
Copy link

When can we expect this?`

@sveinlo
Copy link

sveinlo commented Jan 19, 2024

+1

@cuong0993
Copy link

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.

@muraterzioglu
Copy link

+1

@solarpush
Copy link

solarpush commented Mar 17, 2024

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests