title: Getting "popup closed by user" even though the user hasn't in gmail login
body: <p>I am trying to login with gmail with angular 5 social login <a href="https://www.npmjs.com/package/angular5-social-login" rel="nofollow noreferrer">package</a> and it is working fine for facebook but in case of gmail it is opening the gmail window and when user enters his details he is authenticated but I get error message "popup_closed_by_user" even though it is getting closed automatically.
  Below is my code:</p>
  
  <pre><code>  public socialSignIn(socialPlatform : string) {
      let socialPlatformProvider;
      if(socialPlatform == "facebook"){
        socialPlatformProvider = FacebookLoginProvider.PROVIDER_ID;
      }else if(socialPlatform == "google"){
        console.log(GoogleLoginProvider.PROVIDER_ID);
        socialPlatformProvider = GoogleLoginProvider.PROVIDER_ID;
      }
  
      this.socialAuthService.signIn(socialPlatformProvider).then(
        (userData) =&gt; {
          console.log("data from fb is");
          console.log(userData);
        }
      );
    }
  </code></pre>
  
  <p>Thanks in advance.</p>