title: OAuth 2.0 using Google Client for JavaScript, getting permission denied
body: <p>Hokay, here's the deal. I'm trying to show very basic functionality of combining BigQuery and Maps API. So, obviously I need OAuth 2.0.
  Using Google API Client Library for JavaScript (aka "gapi"), I'm using the following code.</p>
  
  <pre><code>var project_id = '***';
  var client_id = '***';
  var config = {
      'client_id': client_id,
      'scope': 'https://www.googleapis.com/auth/bigquery',
      'immediate': true
  };
  function auth() {
      gapi.client.setApiKey('***');
      gapi.auth.authorize(config, function() {
          gapi.client.load("bigquery", "v2");
      });
  }
  </code></pre>
  
  <p>This works fine and all, until I try to use a different Gmail account then the one I opened the BigQuery project with. <strong>I get a "permission denied" error.</strong>
  The page is hosted online, the credentials have been set so that Redirect URIs is empty, and the JavaScript origins is set to the 2 websites I want people to have access from.</p>
  
  <p>What am I missing? I just want everyone with a gmail account to be able to use my script, from those 2 websites I've given access to :(</p>