title: How to get Google Refresh Token from AWS Cognito?
body: <p>I already read some topics here</p>
  
  <ol>
  <li><a href="https://stackoverflow.com/questions/47989259/aws-cognito-is-it-possible-to-get-google-access-token-and-refresh-using-aws-ac">AWS cognito - Is it possible to get google access token and refresh using aws access token when sign in using google in from aws cognito</a></li>
  <li><a href="https://github.com/aws-amplify/amplify-js/issues/3619" rel="nofollow noreferrer">https://github.com/aws-amplify/amplify-js/issues/3619</a>.</li>
  </ol>
  
  <p>The first one said I can't get Google Refresh Token from AWS Cognito.</p>
  
  <p>The second one said AWS Cognito auto refresh Google Access Token and return to me when I call refresh AWS Cognito token.</p>
  
  <p><strong>So what is true?</strong> </p>
  
  <p>I try to mapping Google Access Token and Refresh Token by using this </p>
  
  <pre><code>https://medium.com/graymatrix/using-custom-attributes-in-amazon-cognito-user-pool-288cd3128bae
  </code></pre>
  
  <p>After that i only get Google Access Token without Google Refresh Token. </p>
  
  <blockquote>
    <p>Can someone tell me how to get Google Refresh Token from AWS Cognito? Or the official AWS document on this issue.</p>
  </blockquote>