title: IdentityServer 3 refresh user with refresh token
body: <p>We are trying to set up Identity Server 3 in the right way.
  We got authentication working fine and we manage to retrieve the refresh token.</p>
  
  <p>The client application is using Angular.</p>
  
  <p>Now when the acces_token expires any calls to the rest api fails (we managed to get it to return 401) but we are wondering how to re-authenticate the user.</p>
  
  <p>In our tests, any api call made from Javascript is failing (401) but as soon as the page is refreshed the whole mechanism is kicking in. We do see that we are redirected to the identity server but it does not show up the login page, we are sent back to the client application with new tokens apparently.</p>
  
  <p>What I would like to do is to refresh the access token without having to force the user to refresh the page.</p>
  
  <p>What I'm not sure though is whose responsibility is it? Is that the client application (website) or the angular application? In other word, should the application handle this transparently for Angular or should angular do something when it receives a 401, in which case, I'm not too sure how the information will flow back to the web app.</p>
  
  <p>Any clue?</p>
  
  <p>Additional Information: We are using OpenId Connect</p>