Get Azure Active Directory Refresh Token in background(Do not show login Window)

Job ID: 34027058

Budget: $30 – $250 USD

I have done the AAD integration to the app (I can login to the app using Azure Active directory accounts).
App is Asp.Net web form Application.
As you know, the token received as a result of login to AAD is valid only for about an hour, which is not long enough.
What I need is to ‘Refresh the Token’ before it expires. This would allow the users to complete their work without being promoted to login again.
The main issue is when the user is working on a popup form and just before he/she hits the ‘Save’ button, the token expires and then the only option (As of now) available is to lose the changes and refresh the page for the login to AAD. What would be best is the keep refreshing the token in the background (Just before access token expiry) to avoid being prompted to AAD login.

Please write main code on top of the bid.
Related categories: .NET Azure ASP.NET