简体   繁体   English

在 firebase auth 触发器上获取新创建用户的来源

[英]Get origin for newly created user on firebase auth trigger

有没有办法知道新创建的用户是否是使用客户端或管理 SDK 完成的?

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.我觉得可能有一种不同的方式来处理您所面临的情况。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM