如果在使用电子邮件身份验证时从应用程序注销,firebase用户uid会更改吗? [英] Does the firebase user uid change if the user is signed out of the app when using email authentication?

查看:55
本文介绍了如果在使用电子邮件身份验证时从应用程序注销,firebase用户uid会更改吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须实现firebase电子邮件身份验证,并想在其中存储带有firebaseUser.uid字段的数据.我想知道是否有任何情况下将更改用户的uid,以便我不会弄乱用户数据,因为我将根据用户的uid进行引用.因此,如果有任何用户使用电子邮件ID进行注册,则除非他再次使用其他电子邮件登录,否则该uid永远不应更改.

I have to implement firebase email authentication and want to store data with a field of firebaseUser.uid in that. I want to know if there is any case when the user's uid will be changed so that I don't mess up with the user data as I will be referring it based on the user's uid. So if any user signs up using an email id, it's uid should never change unless he logs in again with a different email.

推荐答案

用户的UID是随机分配的,在该项目中不会更改.

The UID for a user is assigned randomly and never changes within that project.

这篇关于如果在使用电子邮件身份验证时从应用程序注销,firebase用户uid会更改吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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