FireBase如何检测用户的存在
How does FireBase detect the existence of an user
假设我们有 100 万用户在使用 Firebase Authe 的应用程序中注册,那么当用户登录时,这个过程是如何进行的?因为需要用到他的Unique Id,所以,Google怎么判断那个Id是否存在呢?因为不能实现索引智能搜索,所以就一个一个查?
How does Google check if that ID exists?
没有。如果你需要检查一个特定的 ID 是否已经存在,你必须检查它。默认情况下无需检查 ID 是否存在,因为 Firebase Auth ID 是唯一的。
编辑:
I couldn't understand Alex, let says that a user has an id of "123456", so when a User logs in to have access to his info, does not Google auth have to check if this user Id is in the database?
Firebase 身份验证不与任何数据库相关。如果您在身份验证过程中将用户数据保存到数据库中作为 Cloud Firestore 或实时数据库,并且如果您想稍后检查特定 ID 是否已经存在,则必须为此编写代码。
假设我们有 100 万用户在使用 Firebase Authe 的应用程序中注册,那么当用户登录时,这个过程是如何进行的?因为需要用到他的Unique Id,所以,Google怎么判断那个Id是否存在呢?因为不能实现索引智能搜索,所以就一个一个查?
How does Google check if that ID exists?
没有。如果你需要检查一个特定的 ID 是否已经存在,你必须检查它。默认情况下无需检查 ID 是否存在,因为 Firebase Auth ID 是唯一的。
编辑:
I couldn't understand Alex, let says that a user has an id of "123456", so when a User logs in to have access to his info, does not Google auth have to check if this user Id is in the database?
Firebase 身份验证不与任何数据库相关。如果您在身份验证过程中将用户数据保存到数据库中作为 Cloud Firestore 或实时数据库,并且如果您想稍后检查特定 ID 是否已经存在,则必须为此编写代码。