refresh token is set with cookie and has limited expiration date (35 min). because each time when token expires ( 30 min ) you only have limited time to get a new token. if you haven't call refresh token in that 5 min window, that one also will expire and you will then need to relogin.