Closed pschoffer closed 1 month ago
I am happy to investigate further, but could use some pointers to how these triggers work under the hood.
Oh my bad. I had an initEmulators script that ran too early for the functions to be bootstraped probably and that created the user in the first place not the sign in link. Ignore me:)
Related issues
[REQUIRED] Version info
node:
$ node --version v18.17.1 firebase-functions: 5.0.1
firebase-tools: $ firebase --version 13.7.2
firebase-admin:11.8.0
[REQUIRED] Test case
1) Setup User function:
2) Create user via link login:
3) user gets logged in and created in auth emulator. The emulator output:
The user now exists in auth emulator:![image](https://github.com/firebase/firebase-functions/assets/19240162/541b5162-fc4e-453b-80e6-5a1298c7b95b)
[REQUIRED] Steps to reproduce
[REQUIRED] Expected behavior
Expected:
setupNewUser
function gets triggered.[REQUIRED] Actual behavior
Actual:
setupNewUser
is not triggered.Note:
setupNewUser
function gets triggered as expected if user is created via emulators UI directly as well in production once deployed. This issue seems to be limited to combination of auth emulators and login via link method.Were you able to successfully deploy your functions?
Nope. All works correctly when deployed.