Firebase用户ID可以更改吗? [英] Can the Firebase user id change?

查看:223
本文介绍了Firebase用户ID可以更改吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Firebase用户ID可以更改吗?我所说的是, FirebaseAuth.getInstance()。getCurrentUser()。getUid()如果用户删除他的账户,就像这里描述管理用户。我假定 getUid() id被绑定到电子邮件右侧,或者!

解决方案


我假定getUid() !

不是派生自的意义上的并列。 绑在关联的意义。



请记住,电子邮件可以改变。如果发生这种情况,当然ID保持不变。



您可以通过创建新用户,检查ID,更改电子邮件并检查该ID不会改变,然后删除用户,并使用相同的电子邮件创建一个新的用户,并检查一个新的ID已被分配。


Can the Firebase user id change? What I talk about is this, FirebaseAuth.getInstance().getCurrentUser().getUid() If user delete his account like it is described here Manage-users. I was assuming the getUid() id was tied to the E-Mail right, or!?

解决方案

I was assuming the getUid() id was tight to the E-Mail right, or!?

Not "tied" in the sense of "derived from". "Tied" in the sense of "associated with".

Remember that the email can be changed. When that happens, of course the id is left as is.

You can easily test this in the Firebase console by creating a new user, checking the ID, changing the email and checking that the ID does not change, then deleting the user and creating a new user with the same email and checking that a new ID has been assigned.

这篇关于Firebase用户ID可以更改吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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