title: Flutter web google_sign_in: How to retrieve refreshToken
body: <p><a href="https://pub.dev/packages/google_sign_in" rel="nofollow noreferrer">google_sign_in</a> does not return <code>refreshToken</code>. Is there a way to sign in with Google and receive a refresh token which can be sent to the API for further access to the user's data?</p>
  <p>Refresh token could be also obtained with serverAuthCode which is always null at the moment. There are multiple issues created already describing this issue:</p>
  <ul>
  <li><a href="https://github.com/flutter/flutter/issues/45847" rel="nofollow noreferrer">https://github.com/flutter/flutter/issues/45847</a></li>
  <li><a href="https://github.com/flutter/flutter/issues/57712" rel="nofollow noreferrer">https://github.com/flutter/flutter/issues/57712</a></li>
  <li><a href="https://github.com/flutter/flutter/issues/15796" rel="nofollow noreferrer">https://github.com/flutter/flutter/issues/15796</a></li>
  <li><a href="https://github.com/flutter/flutter/issues/62474" rel="nofollow noreferrer">https://github.com/flutter/flutter/issues/62474</a></li>
  </ul>
  <p>Is there any way to authenticate with Google Sign In and receive either refreshToken or serverAuthCode?</p>