title: Google Auth2 popup_closed_by_user
body: <p>I have a google login, and I'm getting this error {error: "popup_closed_by_user"} </p>
  
  <p>Here is my code:</p>
  
  <pre><code>const startApp = () =&gt; {
    gapi.load('auth2', function(){
      auth2 = gapi.auth2.init({
        client_id: 'CLIENT_ID',
        cookiepolicy: 'single_host_origin',
      })
      auth2.signIn()
      .then(function() { 
        console.log(auth2)
      })
      .catch(function(error){
        console.log(error)
      });
      attachSignin(document.getElementById('google-button'));
      });
  };
  </code></pre>
  
  <p>I have seen answers saying that I need to separate the 'gaps.load' from the 'gap.auth2.init' but I get that there's an error on init because it's not defined. This code works and I'm able to sign in but I always get the popup of the "error: popup_closed_by_user"</p>
  
  <p>Also, I don't have any ad-blockers and this error I get it on all devices and all browsers.</p>