firebase在哪里保存简单的登录用户? [英] Where does firebase save it's simple login users?

查看:187
本文介绍了firebase在哪里保存简单的登录用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前使用 firebase 来制作离子应用。我为社交认证( facebook,twitter,email& password)使用 firebase简单登录 )。 auth完美地工作,它 $ broadcasts authed user 。但是,它似乎并没有在实际的 firebase db 中创建一个用户。我想知道如何使用我的应用程序获取 authed 的用户。感谢您的帮助,我们非常感谢:)。对于大多数支持的身份验证协议,Firebase不会存储用户数据随处可见即使对于存储数据的协议(我只知道电子邮件+密码这样做),它将这些信息存储在应用程序无法访问的地方(尽管您可以在这些地方找到这些用户Firebase的信息中心)。

引用 Firebase文档
$ b


它不存储配置文件或用户状态您的Firebase。要保留用户数据,您必须将其保存到您的Firebase。


大多数应用程序最终做的是在其内部保留用户列表他们自己管理的Firebase。因此,当用户首先对应用程序进行身份验证时,它会在 / users /< uid> 下创建包含该用户信息的节点。

b

请参阅描述存储用户数据的Firebase文档

I am currently using firebase to make an ionic app. I am using firebase simple login for social auth (facebook, twitter, email & password). The auth works perfectly, it $broadcasts the authed user. However it doesn't seem to create a user in the actual firebase db. I was wondering how I can get the users that have been authed using my app. Thanks, you help is greatly appreciated :).

解决方案

For most of the authentication protocols it supports, Firebase doesn't store user data anywhere. Even for the protocols where it does store data (I only know of email+password doing this), it stores this information in a place that your application can't access (though you can find those users in the dashboard of your Firebase).

To quote the Firebase documentation:

It does not store profile or user state in your Firebase. To persist user data you must save it to your Firebase.

What most applications end up doing, is keeping a list of users inside their Firebase that they manage themselves. So when a user first authenticates with the application, it creates a node under /users/<uid> that contains the information for that user.

See this section of the Firebase documentation that describes storing user data.

这篇关于firebase在哪里保存简单的登录用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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