title: angular-oauth2-oidc tryLogin() not working as expected
body: <p>I'm using release version of 8.0.4 in my angular 8 project with authorization code flow:</p>
  <p>here is the code I have</p>
  <pre><code>    this.oauthService.configure(authConfig);
      this.oauthService.tokenValidationHandler = new JwksValidationHandler();
      this.oauthService
        .loadDiscoveryDocument()
        .then(() =&gt; this.oauthService.tryLogin()) ---&gt; [1]
        .then(() =&gt; {
          if (this.oauthService.hasValidAccessToken()) {
            return Promise.resolve();
          }else{
            this.oauthService.initCodeFlow() ---&gt; [2]
          }
        });
    }
  </code></pre>
  <p>Initially when user is not logged in the code at [2] redirects user to login page.</p>
  <p>Once user provides username/password and click login, the identity provider redirects back to app with &quot;code&quot; in querystring, that is when I'm expecting code at [1] to login the user with code (by redeeming it for tokens).</p>
  <p>Instead the tryLogin() method doesn't work and the user is again redirected to authorzation endpoint in endless loop.</p>
  <p>Please help me understand, what is going wrong here.</p>
  <p>also, does this example : <a href="https://github.com/jeroenheijmans/sample-angular-oauth2-oidc-with-auth-guards/" rel="nofollow noreferrer">https://github.com/jeroenheijmans/sample-angular-oauth2-oidc-with-auth-guards/</a>  apply for version 8 ?</p>