title: IdentityServer4 and Angular: logout with Implicit flow
body: <p>I have an Angular app that integrates with IdentityServer4 with implicit flow and the angular-oauth2-oidc library.</p>
  
  <p>Everything seems to work fine, I can log in; and access token is available.</p>
  
  <p>If I click the logout button, I handle it like:</p>
  
  <pre><code>logout() {    
     this.oauthService.logOut();    
  }
  </code></pre>
  
  <p>...and I'm redirected to Identity Server, where it asks me if I really want to log out.</p>
  
  <p>My question is whether I can bypass that prompt? I mean, I want to log out completely if the button is clicked and redirected back to the Angular site, without the need to confirm it?</p>
  
  <p>How can this be achieved?</p>
  
  <p>EDIT: as mentioned in the other answers, it should work if you pass id_token_hint. So I did:</p>
  
  <pre><code>logout() {
      this.oauthService.customQueryParams = {
          'id_token_hint': this.oauthService.getIdToken()
      };    
      this.oauthService.logOut();    
  }
  </code></pre>
  
  <p>But it doesn't make any difference.</p>