作者:仲颖凯翰奕颖 | 来源:互联网 | 2023-05-18 00:06
IwouldliketoreacttowhenanewuserisaddedintheFirebasemanagedusersystem(frommyNode
I would like to react to when a new user is added in the Firebase managed user system (from my Node app).
我想对在Firebase托管用户系统中添加新用户的时间做出反应(来自我的Node应用程序)。
I don't need any other info associated with a user so it seems a waste to have to add my own user entry from the client just so the Node app knows one was added.
我不需要与用户关联的任何其他信息,因此从客户端添加我自己的用户条目似乎是浪费,因此Node应用程序知道添加了一个。
It also creates another point of failure - i.e. if the user is created but then my write to users
fails I would need to rewind on the client and delete the user account so they can try again.. and if removeUser
also fails then the logic would get nasty.
它还会创建另一个故障点 - 即如果用户已创建但后来我写入用户失败,我需要在客户端上回退并删除用户帐户以便他们可以再试一次..如果removeUser也失败则逻辑将变得讨厌。
Thanks.
1 个解决方案