title: for keycloak + angular + cordova app, logout only seems to work if done within a 10-15 seconds of login
body: <p>for my application (angular app, uses Keycloak for auth and Cordova for making it into ios and android apps) the behavior of logout is weird
  observation with logout</p>
  <ol>
  <li>login to the application and keep the app ideal for a minute</li>
  <li>press logout the app shows a web page moment and then redirects to the default route (as if there is no logout was requested</li>
  <li>if you keep the app ideal for a minute, then the same thing will repeat.</li>
  <li>if logout is pressed within 10-15 seconds of login or after step 2 the app will log out successfully.</li>
  </ol>
  <p>config at Keycloak server</p>
  <p><a href="https://i.stack.imgur.com/dY24h.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dY24h.png" alt="enter image description here" /></a></p>
  <p>I am using the following config for Keycloak init
  <a href="https://i.stack.imgur.com/Fs84e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Fs84e.png" alt="enter image description here" /></a></p>
  <p>and this is the code in the logout
  <a href="https://i.stack.imgur.com/9mGEk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9mGEk.png" alt="enter image description here" /></a></p>
  <p>for the web app (desktop and iPad) things are working as expected.</p>
  <p>I have tried to redirect the app to the logout URL provided in <a href="https://www.keycloak.org/docs/latest/securing_apps/#logout" rel="nofollow noreferrer">Keycloak docs#logout</a>, however, did not work as expected.</p>
  <p>expected outcome: once logout is clicked the app should logout and the login page should be visible.</p>
  <p>Has anyone encountered this sort of issue?
  if any more details are required to debug this issue please let me know.</p>
  <p>Versions used:</p>
  <ul>
  <li>Keycloak: 10.0.0</li>
  <li>Angular: ~10.1.1</li>
  <li>Cordova: 10.0.0</li>
  <li>cordova-android:^9.0.0</li>
  <li>cordova-ios: ^6.1.1</li>
  </ul>