使用Firebase用户UID检索配置文件信息 [英] Using Firebase User UID to retrieve profile info

查看:57
本文介绍了使用Firebase用户UID检索配置文件信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是最佳做法是从Firebase用户UID中获取用户信息

我的开发语言没有管理SDK.我在 Firebase Auth REST上找到了文档API .您可以获取特定电子邮件地址的提供商信息,并且可以通过auth令牌ID来获取当前已认证用户的配置文件数据,但是我看不到一种基于用户uid检索配置文件数据的方法.我只是想念它吗?

there is no admin SDK for my development language. I have found docs on the Firebase Auth REST API. You can get provider info for a particular email address, and you can fetch profile data for a currently-authenticated user by the auth token id, but I don't see a way to retrieve profile data based on the user uid. am i just missing it?

推荐答案

REST API仅提供公共API,该公共API是客户端SDK(例如Web SDK)的子集.它不是管理API,因此没有文档记录的方式允许通过UID查找用户.您应该更多地将其视为一种API,该API允许您在没有完整客户端SDK的平台上创建有限的客户端.

The REST API only provides a public API that is a subset of the client SDKs (e.g. the web SDK). It is not an administrative API, and thus has no documented way to allow looking up a user's by a UID. You should think of it more as an API that allows you to create limited clients on platforms for which no full client SDK is available.

获取电子邮件提供商您链接的部分用于创建一个客户端,该客户端可以向用户显示他们之前可能曾经登录过的商品列表.

The Fetch providers for email section you linked is there for creating a client that can show the user a list of the provides they might have used to sign in before.

这篇关于使用Firebase用户UID检索配置文件信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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