title: Wrong number of segments in token (Refresh Token)
body: <p>The problem is that when I request refresh token for <code>https://www.googleapis.com/auth/analytics.readonly</code> and 
  run </p>
  
  <pre><code>$client-&gt;refreshToken(&lt;TOKEN&gt;); 
  $client-&gt;verifyIdToken();
  </code></pre>
  
  <p>it returns error </p>
  
  <blockquote>
    <p>("wrong number of segments in token").</p>
  </blockquote>
  
  <p>The strange thing is that when I request the refresh token for array</p>
  
  <pre><code>('https://www.googleapis.com/auth/analytics.readonly','https://www.googleapis.com/auth/plus.login') 
  </code></pre>
  
  <p>it works like charm.</p>
  
  <p>Code:</p>
  
  <pre><code>$client-&gt;setScopes(array('https://www.googleapis.com/auth/analytics.readonly','https://www.googleapis.com/auth/plus.login'));
  $client-&gt;setRequestVisibleActions('http://schema.org/AddAction');
  $client-&gt;setAccessType('offline');
  $client-&gt;setApprovalPrompt('force');
  </code></pre>
  
  <p>Can anyone offer an explanation?</p>