title: 'Token has been expired or revoked' - Google OAuth2 Refresh token gets expired in a few days
body: <p>I am using Google Analytics API to fetch analytics data. I tried to authenticate it using following steps:</p>
  <ul>
  <li>Created OAuth client ID in <a href="https://console.developers.google.com/" rel="noreferrer">https://console.developers.google.com/</a> credentials section.</li>
  <li>In consent screen I had set publishing status as testing</li>
  <li>In OAuth 2.0 Playground I got the refresh token using above generated client id and client secret</li>
  <li>Then I am using it to generate access token through it.</li>
  </ul>
  <p>But after a few days, the refresh token expires although it is mentioned that the refresh token's validity is life long.</p>