且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

***实践从Firebase用户UID获取用户信息

更新时间:2023-12-06 08:25:40

要直接为应用的任意用户读取用户数据,请使用Firebase Admin SDK: https://firebase. google.com/docs/auth/admin/manage-users#retrieve_user_data

To directly read user data for arbitrary users of your app, you'd use the Firebase Admin SDK: https://firebase.google.com/docs/admin/setup. This specific page shows how to read user data: https://firebase.google.com/docs/auth/admin/manage-users#retrieve_user_data

通过Admin SDK读取用户数据目前仅适用于Node.js和Java.由于Ruby不在此列表中,因此您需要将用户信息保留在其他位置. Firebase数据库是存储此类数据的常用场所,因此任何平台都可以通过其REST API对其进行访问.

Reading user data through the Admin SDK is currently only available for Node.js and Java. Since Ruby isn't on this list, you'll need to keep the user information elsewhere. The Firebase Database is a common place to store such data, so that any platform can access it through its REST API.