Here's another reason. I have a users/{user} document that's used to store a user's profile.
It's often created when users register via email and password, I then force a linkWithPhoneNumber to verify the user.
but I have enabled:
User account linking
When a user signs in using different identity providers, you can choose to automatically merge accounts on sign in.
So I cannot make changes to the document associated with that user, and most of the details of the user need to be updated - and in the case of them doing a Google login then phone and email account are no longer viable auth methods
Here's another reason. I have a users/{user} document that's used to store a user's profile.
It's often created when users register via email and password, I then force a linkWithPhoneNumber to verify the user.
but I have enabled:
User account linking
When a user signs in using different identity providers, you can choose to automatically merge accounts on sign in.
So I cannot make changes to the document associated with that user, and most of the details of the user need to be updated - and in the case of them doing a Google login then phone and email account are no longer viable auth methods