title: Spring boot keycloak: How to handle token expiration and refresh token
body: <p>I am using spring boot security and spring boot keycloak starter to secure rest APIs and authenticate users.</p>
  <p>My first question is how to handle access token expiration if user's session is still valid.</p>
  <p>The second question is getting the access token from keycloak into spring boot app is done by calling this line</p>
  <pre><code>AccessTokenResponse response = authzClient.obtainAccessToken(username, password);
  </code></pre>
  <p>in the same way how to call refresh token api</p>