I'm building an application getting emails for Office365 users using ASPOSE.
My users have MFA enabled so I can't use ROPC like recommanded in Aspose documentation
Once I get my access token, I need it to refresh when it expires.
I searched for hours in Microsoft and Aspose documentation and I'm a bit lost.
Does someone went through the same issue?
Thanks
Please refer to the following sections of Microsoft documentation:
Thus, you should monitor the access token expiration or force a refresh after a certain time interval (e.g. 30 min):
Also, you can refer to the blog article explaining how to use modern authentication with Aspose.Email to connect to Microsoft365.