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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] please add onSignIn to auth function trigger #1328

Open
Thaina opened this issue Dec 16, 2022 · 2 comments
Open

[FR] please add onSignIn to auth function trigger #1328

Thaina opened this issue Dec 16, 2022 · 2 comments

Comments

@Thaina
Copy link

Thaina commented Dec 16, 2022

[REQUIRED] Version info

9.15.0

node:
16.18.1

firebase-functions:
0.9.0

firebase-tools:
11.18.0

firebase-admin:
11.2.0

[REQUIRED] Expected behavior

Have function to trigger after user signin like onCreate function

functions.auth.user().onSignIn((user,context) => {
});

Because beforeSignIn is blocking function and trigger just before user successfully signed in. It not a proper function to take a log and monitoring user signing in or taking any complicate action. I want this function to just notify the server and can run the long running task

@inlined
Copy link
Member

inlined commented Jul 27, 2023

Barring new infrastructure in the auth team's backend, have you considered kicking off a task queue function during beforeSignIn so you can run the long-running task asynchronously?

@Thaina
Copy link
Author

Thaina commented Jul 28, 2023

That was an option I have considered but still it add more complication and dependency to the system just for very simple use case

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

4 participants