下面的代码在users/路径上附加了一个观察者,并在值发生变化时记录用户。
在firebase上,此users/树取决于当前经过身份验证的用户的访问权限。
firebase.auth().onAuthStateChanged(function(user) {
if (user) {
// User is signed in.
... do other stuff
} else {
// No user is signed in.
... do other stuff
}
});
firebase.database().ref('users&
在我的安卓应用程序中,我正在从signInWithGoogle迁移到Firebase。
我可以在我的android应用程序中生成firebase用户并获取用户信息,但我在使用firebase令牌进行后端服务器身份验证时遇到了困难。
我希望能够将令牌传递给服务器,对其进行解码并验证用户,而不是传递电子邮件地址或其他个人信息。这是文档中首选的身份验证方法。
// The user's ID, unique to the Firebase project. Do NOT use this value to // authenticate with your backend server,
我无法将数字添加到我们的iOS应用程序,也无法迁移到Firebase身份验证。我的帐户未启用中所述的“开始迁移到Firebase”。我是一名管理员,我看到了"Digits is moving to firebase“的注释,在Fabric中的Digits旁边有一个感叹号。如果迁移到Firebase的选项仍然是WIP,您是否可以帮助启用迁移,或者让我们添加数字?
谢谢!