Authentication exception (InvalidAuthenticationTokenError) from Microsoft Graph in Inbound Email
We have recently Implemented Microsoft graph API in our production environment and 5 email listeners are working with this setup to read inbound emails. Though the email listeners are able to read and parse the inbound emails successfully, we are getting the below exceptions from time to time on a daily basis. And this is happening from very first day of the deployment in production.
Error code: InvalidAuthenticationTokenError message: Access token has expired or is not yet valid.GET https://graph.microsoft.com/v1.0/users/[email protected]/mailFoldersSdkVersion : graph-java-v1.4.0Authorization
(the email ID is coming properly in the exception message, here it is hidden for security purpose only)
Need some suggestion on the above mentioned issue about how to resolve this.