title: How to reset google oauth 2.0 authorization?
body: <p>I'm using <a href="https://developers.google.com/api-client-library/javascript/" rel="noreferrer">Google APIs Client Library for JavaScript (Beta)</a> to authorize user google account on web application (for youtube manipulations). Everything works fine, but i have no idea how to "logout" user from my application, i.e. reset access tokens.</p>
  
  <p>For example, following code checks user authorization and if not, shows popup window for user to log into account and permit web-application access to user data:</p>
  
  <pre><code>gapi.auth.authorize({client_id: CLIENT_ID, scope: SCOPES, immediate: false}, handleAuth);
  </code></pre>
  
  <p>But client library doesn't have methods to reset authorization. </p>
  
  <p>There is <a href="https://groups.google.com/forum/?fromgroups=#!topic/google-api-javascript-client/PCs8xXV4wxk" rel="noreferrer">workaround</a> to redirect user to "accounts.google.com/logout", but this 
  approach is not that i need: thus we logging user off from google account not only from my application, but also anywhere.</p>
  
  <p>Google faq and client library description neither helpful.</p>