Firebase使用UID获取身份验证详细信息 [英] Firebase get Authentication details using UID

查看:61
本文介绍了Firebase使用UID获取身份验证详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用javascript和php构建一个android应用程序的管理面板,在其中我用Firebase身份验证UID创建了一个users表,因此每个用户密钥都是UID,但在此用户表中我没有插入 Auth Identifier 强>.现在,在我的管理面板中,我如何使用UID(用户密钥)检索Auth标识符(电话号码)

I am building a admin panel for a android app in javascript and php in which i created a users table with Firebase Authentication UID so every user key is UID but in this user table i am not inserting Auth Identifier. now in my admin panel how can i retrieve Auth Identifier (Phone Number) using UID(user Key)

推荐答案

您只能从当前会话/用户获取经过Firebase身份验证的用户信息,如果以后需要查询,则需要将其保存在自己的数据存储.

You can only get the firebase authenticated User info from the current session/user, and if you need to query for it later then you need to save it in your own datastore.

有关更多详细信息,请参见以下 https://www.firebase.com/docs/web/guide/user-auth.html#section-storing

For more details, see this https://www.firebase.com/docs/web/guide/user-auth.html#section-storing

这篇关于Firebase使用UID获取身份验证详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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