In developing desktop application, It has mentioned that webview needs to be opened for authentication and should be closed when we get request_token. Now suppose user logs in other computer/mobile or any what so ever reasons this session gets disconnect then how will my desktop app know about it? because It will always place requests based on what request_token it has received. To resolve this there must be some mechanism to periodically check whether api session is continue or lost. Now what best/cpu not so intensive approach you will suggest for this activity?