热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

添加用户时的Firebase事件-Firebaseeventwhenuserisadded

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 个解决方案

#1


0  

There is no public API for Firebase Authentication that informs you that a new user account was created.

Firebase身份验证没有公用API通知您已创建新用户帐户。


推荐阅读
author-avatar
仲颖凯翰奕颖
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有