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

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

问题描述

Firebase 用户 ID 可以更改吗?我谈论的是这个,FirebaseAuth.getInstance().getCurrentUser().getUid() 如果用户像这里描述的那样删除他的帐户 管理用户.我假设 getUid() 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!?

推荐答案

我假设 getUid() id 与电子邮件紧密相关,或者!?

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".

请记住,电子邮件可以更改.发生这种情况时,当然 id 会保持原样.

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

您可以通过创建新用户、检查 ID、更改电子邮件并检查 ID 未更改,然后删除用户并使用相同电子邮件创建新用户并检查已分配新 ID.

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天全站免登陆