Hello @PaulAzure-8925,
How i will set idle timeout in express settings?
You will need to setup a lifetime policy per the docs here :
Depending on your requirements per the docs, you may need to get the application ID by switching to the custom view of the App Service's Easy Auth Settings.
Will there be automatic extension of token if user continuously use for 2 hours?
You will need to refresh your token yourself. Please see the answer from Chris Gillium in the SO post for more information
Should i refresh the token with access token?
That's not how the access token works, refresh tokens are used to get new access tokens. For more information on how the OAuth2 flow works for auth code, oidc, or refresh please refer to the docs below :
https://learn.microsoft.com/en-us/azure/active-directory/develop/authentication-scenarios
https://learn.microsoft.com/en-us/azure/active-directory/develop/authentication-flows-app-scenarios