android - Firebase UID 在多个应用程序中是否唯一?

标签 android mongodb firebase firebase-authentication

我有两个不同的应用程序,它们连接到相同的后端服务器和相同应用程序的一部分,但用户不同。就像 Uber Driver App 和 Uber User App 一样。

  • 用户的 UID 在不同应用中是否相同,还是仅限于单个 Firebase 项目或单个应用?
  • 我也想知道,在 Mongo 中使用 Firebase UID 作为 ObjectId 是否会造成任何危害?

最佳答案

因为我刚刚回复了your comment here :

UIDs are definitely be unique within a single project (so also across all apps in that project). I think they're also unique across all projects, but I've never had a need to investigate that.

鉴于 Firebase 使用 UID 来识别用户,使用它们来识别 Mongo 中的对象听起来很合理。

关于android - Firebase UID 在多个应用程序中是否唯一?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39992584/

相关文章:

android - 滑动菜单空白

mongodb - 我应该让mongodb以这种方式使用新硬盘吗?

javascript - Firebase - 如何从 .once 调用中检索数据

swift - 无法从 firebase 读取方法中提取 var

android - 从布局上的任意位置右滑打开 NavigationView

android - 按钮 layout_height=线性布局内的 wrap_content 高度比 wrap_content 大得多

javascript - MongoDb 快速查询 Javascript

firebase - 如何在 flutter 中将不同的数据类型添加到 firestore

java - 如何让用户设置背景颜色?

javascript - 如何使用Mongoose使用MongoDB事务?