Can the Firebase user id change?

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.


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.