title: Google Oauth not getting refresh token
body: <p>I am trying get refresh token. 
  I read about it in google documents. 
  Now, I am using accesstype offline and also approval_prompt: "force"
  But I am not getting refresh token in response. 
  I not getting what I am doing wrong. </p>
  
  <p>I have following html code: </p>
  
  <pre><code>&lt;input type="submit" class="btn btn-info" value="Google" onclick="authorizeWithGoogle()" /&gt;
  </code></pre>
  
  <p>Javascript code: </p>
  
  <pre><code> var cid = 'XXXXX';
   var apik = 'XXXXX';
   var scopes = 'https://www.google.com/m8/feeds';
  
   function authorizeWithGoogle() {
       gapi.client.setApiKey(apik); 
       gapi.auth.authorize({ client_id: cid, scope: scopes,  accesstype: "offline"   ,approval_prompt: "force"}, handleAuthResult);
   }
  
   function handleAuthResult(authResult) {
       delete authResult['g-oauth-window'];
   if (authResult &amp;&amp; !authResult.error) {
      console.log(JSON.stringify(authResult));      
   }
  }
  </code></pre>
  
  <p>Can you please help me.</p>