I'm experimenting with EASendEmail. I use gmail to send email and after 5/30/2022 they require OAuth authentication. I've created several Excel addins that need to send email. I created a project in the Google Developers Console and got a Client ID and Client Secret. I successfully used easendmail ActiveX component to send email.
The problem I'm having is to refresh the Access Token. In the documentation it says "You can find full sample project in EASendMail installation path to learn how to refresh token.". I've looked all over and can't find a document/sample on how to do it for an ActiveX app.
Also, how can you tell if it expired? How long does it last? What it is the best to manage access token?