The app only checks the expiration time at startup. The app should check before any API request if the token is expired before taking any action. If it did, then enable the buttons for requesting the tokens again. Then it doesn't need to check every second.