title: AWS Cognito Google Identity Provider Get Profile First & Last Name
body: <p>I've setup AWS Cognito with a Google identity provider as described in <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-social-idp.html" rel="noreferrer">https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-social-idp.html</a>. </p>
  
  <p>Users can login but I only seem to get back the users <code>email</code>, <code>email_verified</code> and a <code>username</code> like <code>Google_xxxxxxxxxxxxxxx</code> in my auth callback and cognito login/signup Lambda hooks.</p>
  
  <p>Is there a way to also get the users first &amp; last name?</p>
  
  <p>I've set <code>profile email openid</code> as the authorize scope.</p>
  
  <p>Also tried using <code>googleapis</code> npm package to call <code>oauth2.userinfo.get</code> as in <a href="https://stackoverflow.com/questions/46780218/how-to-use-the-node-google-client-api-to-get-user-profile-with-already-fetched-t/46780714">How to use the node google client api to get user profile with already fetched token?</a> but the access token I get back is from Cogntio not google which is why I assume this didn't work for me.</p>