title: Email and Google authentication using AWS Cognito
body: <p>My app currently uses a Cognito user pool for email and password authentication. It works very well. I want to add google authentication now. </p>
  
  <p>I've added google as an identity provider by following the documentation here <a href="http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-social.html" rel="nofollow noreferrer">http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-social.html</a>. </p>
  
  <p>I've authenticated my user with google and get back an auth token from google and an id token. I'm unsure what to do next. </p>
  
  <p>I imagine I somehow give this token to cognito and cognito gives me a cognito id token I can use for authentication with my app.</p>