Handling expired refresh-tokens without user interaction, Microsoft GraphAPI
For a project I need to continuously monitor the inbox of an email-address for incoming data and handle the messages accordingly. For this I am using the Microsoft GraphAPI, I have created an App on entra and have gone through all the required setup to fetch an initial access-token and refresh-token which I have been using the last 90 days to fetch new access-tokens to query the inbox. This worked perfectly for these 90 days but yesterday the system failed when the GraphAPI returned that my refresh-token had expired “due to inactivity”.
Mircosoft Graphs API /common vs /{{tenant}}
I have created one App registration in my azure email named:[email protected] and I have configured redirect URI and client secrets in it and also given API permission to that app.