在Firebase中查询注册用户的详细信息 [英] Query registered users details in Firebase

查看:102
本文介绍了在Firebase中查询注册用户的详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用简单的电子邮件/密码组合来验证Firebase中的用户身份。有没有办法通过标准的REST API或任何其他库(最好是React.js与ReactFire或Re-base)公开用户的注册详细信息,如电子邮件或帐户创建日期?例如,我希望能够获得所有注册用户的列表或将UID传递给查询并检索电子邮件地址或创建日期。我知道我可以通过在用户UID下的自定义数据存储中存储所需的用户详细信息来实现此目的,但是我正在查看原始数据,而不是我自己的副本。我也明白,暴露这样的细节可能不是一个推荐的做法,因为它会导致安全风险,但我仍然想探索实现这一目标的可能性。 解决方案

Firebase不会通过任何API公开该数据。就像您所说的那样,唯一的选择是您将这些数据存储在您的Firebase实例中,然后在那里查询。


I am using simple email/password combination to authenticate users in Firebase. Is there a way to expose users' registration details like email or account creation date by the standard REST API or any other library (preferably React.js with ReactFire or Re-base)?

For example, I want to be able to get a list of all registered users or pass a UID to a query and retrieve email address or creation date. I know I can achieve this by storing the needed user details in my custom data store under the user UID for example, but I am looking to access the original data and not my own copy of it. I also understand that exposing such details might not be a recommended practice as it causes a security risk, but I still want to explore the possibility of achieving this.

解决方案

Firebase does not expose that data through any API. Like you've said, the only option is for you to store that data in your Firebase instance, and then query it there.

这篇关于在Firebase中查询注册用户的详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆