Ad

Get Origin For Newly Created User On Firebase Auth Trigger

- 1 answer

Is there a way to know if a newly created user was done so using the client or admin SDK?

Ad

Answer

No, the auth trigger isn't origin specific. It doesn't care how a new user account gets created... it doesn't get called/triggered until the creation occurs.

Not to go too far off topic from your question, or turn this into a fully-fledged conversation, but what are you trying to accomplish that you want to detect what created the account? I feel like there's probably a different way to handle the scenario you're facing.

Ad
source: stackoverflow.com
Ad