title: Flutter app: How to implement a proper logout function?
body: <p>I have a flutter App using Azure B2C authentication. To achieve this I use the flutter appAuth package. The login process works fine but appAuth does not provide a logout functionality. After logging in I get an access token. Until now my logout was to delete this access token.</p>
  
  <p>The problem is, that Azure require a web app session lifetime of at least 15 minutes in the SignIn user flow. This means: If a user logs in and out within 15 minutes, he will automatically be logged in again. This makes a login with another user impossible.</p>
  
  <p>I hope to fix this behavior with a real logout instead of only deleting the access tokens. In found the following line of code in the <a href="https://docs.microsoft.com/en-us/azure/active-directory-b2c/openid-connect#send-a-sign-out-request" rel="noreferrer">Azure Active Directory documentation</a>. But I cannot manage to get it running. Any suggestions for a logout function?</p>
  
  <pre><code>GET https://{tenant}.b2clogin.com/{tenant}.onmicrosoft.com/{policy}/oauth2/v2.0/logout?post_logout_redirect_uri=https%3A%2F%2Fjwt.ms%2F
  </code></pre>