title: AWS Cognito: Best practice to handle same user (with same email address) signing in from different identity providers (Google, Facebook)
body: <p>When signing in a user with the same email address through the Google and Facebook identity providers, AWS Cognito creates multiple entries in the user pool, one entry per identity provider used:</p>
  
  <p><a href="https://i.stack.imgur.com/VzgIk.png" rel="noreferrer"><img src="https://i.stack.imgur.com/VzgIk.png" alt="Screenshot of AWS Cognito user pool"></a></p>
  
  <p>I have used the example code provided in this tutorial to set up AWS Cognito: <a href="https://dev.to/dabit3/the-complete-guide-to-user-authentication-with-the-amplify-framework-2inh" rel="noreferrer">The Complete Guide to User Authentication with the Amplify Framework</a></p>
  
  <ul>
  <li>How can I create just one user instead of multiple users?</li>
  <li>Is it possible to have AWS Cognito automatically combine (federate) the entries
  from multiple providers into one entry or should AWS Lambda functions be used to accomplish this?</li>
  </ul>