title: Angular app should stay logged in, until app is open in browser
body: <p>I have one Angular app with authentication, everything is working good as expected.</p>
  
  <p>But we need that application/session/token should be valid even though there is not activity and app is still open in browser.</p>
  
  <p>and token should be expired only if user do logout himself.</p>
  
  <p>I have an idea, but don't know how should I implement it at application level.</p>
  
  <p>I want to sent one request to API that will refresh the accesstoken every 10 mins.</p>
  
  <p>Where can I implement this logic.</p>
  
  <p>Thanks in advanced.
  Danyal</p>