Can the Firebase user id change?

前端 未结 2 618
后悔当初
后悔当初 2020-12-11 03:24

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

2条回答
  •  长情又很酷
    2020-12-11 03:34

    As said by @user663031, the answer "no" is correct.

    To add on to @user663031's answer, I'm working on a project, but I have to switch between the live database and the test database. I created a user (in firebase authentication) in both test & live environment with the same email address & password, however the id's are different.

    In order to achieve proper tests in both environments, I had to change id stored in real time database so that it matches the "unchangeable id" in authentication.

提交回复
热议问题