@9982c2a9-df9e-49ee-8db8-68420607ec20
After 1 hour, the DemoApp will reject access token with 401 unauthorized error. So your code needs to handle the refresh of the access token. At refresh of access token/ session cookie, login.microsoftonline.com can reject refresh token/session cookie with error: prompt required
- handle that error and initiate a prompt for authentication. MSAL (Microsoft Authentication Library) does this out of the box. 3rd party libraries need exception handling.
Please do not forget to "Accept the answer" wherever the information provided helps you. This will help others in the community as well.