Firebase如何获取用户详细信息?

编程入门 行业动态 更新时间:2024-10-14 14:20:51
本文介绍了Firebase如何获取用户详细信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在我的应用中使用Firebase身份验证,并使用电子邮件和密码注册用户。我想获得其他用户的详细信息(与登录用户分开),同时用户使用自己的帐户登录。如何获得这些信息?解决方案

I am using Firebase authentication in my app and signing up a user with email and password. I want to get other users details (separate from the logged-in user) as well while a user is signed in with their own account. How can I get that information?

像电子邮件,显示名称和id(特定于身份验证系统) Firebase用户对象。您可以从 FIRAuth课程获取对当前登录用户的引用。一>。我为iOS提供了链接和类名,但是其他平台的结构也是类似的。

Values like email, display name and id (specific to authentication system) are available off of the Firebase User object. You can get a reference to the current logged in user off of the FIRAuth class. I provided links and class names for iOS, but other platforms are similarly structured.

如果你想为用户存储额外的数据,我会建议包括一个<$ c $使用Firebase用户对象的 uid 作为用户子节点。

If you want to store additional data for users, I would recommend including a users root node, using the uid off of the Firebase User object as the key for users child nodes.

更多推荐

Firebase如何获取用户详细信息?

本文发布于:2023-11-13 22:43:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1585524.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:详细信息   用户   Firebase

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!