相关疑难解决方法(0)

Firebase - auth.uid是共享密钥吗?

看来,当有人通过oAuth进行身份验证时,Firebase会创建一个类似于某个内容的uid google:111413554342829501512.

在Firebase规则中,您可以执行(读取和/或写入):

".read": "root.child('users').child(auth.uid).child('isAdmin').val() == true"
Run Code Online (Sandbox Code Playgroud)

是否因为使用HTTPS而无法通过嗅探网络来阅读消息?这是它的工作原理 - UID是Firebase规则使用的共享密钥吗?

经过firebase:session::ack身份验证后,我在浏览器中看到UID在本地存储中.

firebase firebase-authentication

4
推荐指数
1
解决办法
1509
查看次数

标签 统计

firebase ×1

firebase-authentication ×1