Firebase UID在多个应用程序中是否唯一? [英] Is Firebase UID unique across multiple apps?

查看:81
本文介绍了Firebase UID在多个应用程序中是否唯一?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have two different app which connects to same backend server and part of a same applications but different user. Say just like Uber Driver App and Uber User App.

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

推荐答案

当我刚刚回答

UID在单个项目中绝对是唯一的(因此在该项目中的所有应用程序中也是如此).我认为它们在所有项目中也是唯一的,但我从来不需要进行调查.

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中的对象听起来很合理.

Given that Firebase uses the UIDs to identify users, it sounds reasonable to use them to identify objects in Mongo.

这篇关于Firebase UID在多个应用程序中是否唯一?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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