Is FirebaseUser.getUid() constant for a given user?

Viewed 1560

I have authenticated my user using phone authentication, and the user object that is returned has this long string when I call user.getUid() :

dn27dhJK..... (some long string).

If I authenticate this user on some other device (using my phone number etc), will user.getUid() always be the same ?

EDIT: From the documentation: https://firebase.google.com/docs/reference/android/com/google/firebase/auth/FirebaseUser

public abstract String getUid ()

Also: Google Play services Returns a string used to uniquely identify your user in your Firebase project's user database. Use it when storing information in Firebase Database or Storage, or even in your own backend.

This identifier is opaque and does not correspond necessarily to the user's email address or any other field.

It is unclear if this id remains constant or not.

3 Answers
Related