I am using azure identity AuthorizationCodeCredential with graph python sdk. When i make a graph request after 1 hour from authorization that is after access token expiry I get this error. There is some issue in getting access token from refresh token. I am using confidential client app and a web app authorization code flow.
enter image description here
enter image description here
As you can see I have made api so whenever the access token gets expired the graph client should itself get the refresh token from authcodecredential.