- Understanding Firebase Authentication
In Firebase Authentication, each user is represented by a unique identifier (UID) linked to a specific authentication method. This approach allows for secure and flexible user management.
- Creating User Records
When you sign in via Gmail, Firebase creates a user record associated with your Google account and generates a unique UID for that user. This means that each authentication method is treated separately.
- Implications of Multiple Authentication Methods
If you switch to signing in via Facebook, Firebase treats this as a completely distinct authentication method, creating a new user record linked to your Facebook account—even if both accounts share the same email address. This has implications for user data management and account linking.