title: Angular application logs out after refresh
body: <p>I'm new to angular and made an app with login logout feature. After login when I refresh the browser, application automatically logs out. I can't understand how to use session. Also is there anyway my app automatically logs out after particular time if there's no activity?</p>
  
  <p><a href="https://i.stack.imgur.com/wLQq1.png" rel="nofollow noreferrer">auth.service.ts</a></p>
  
  <p><a href="https://i.stack.imgur.com/DQULc.png" rel="nofollow noreferrer">auth.gaurd.ts</a></p>
  
  <p><a href="https://i.stack.imgur.com/NGjXr.png" rel="nofollow noreferrer">login.component</a></p>