Is it possible for Genesys Messenger to obtain a Microsoft Graph API token directly from Azure tenant

Hi team,

We have setup Genesys Messenger in one of our SharePoint site and we are trying to integrate with other application to make an API calls and get the response back and send to end user. We need to use access token to perform the API call to external environment. the access token needs to be refreshed periodically, for the same we have a script written, but we need to know is there any way for Genesys to talk to the token fetching app using Java Script or any way? Typically, in using the MSAL library, when Genesys needs to make an API call, it calls MSAL and MSAL handles ensuring the token is current and not expired.

or

Would it be possible for Genesys Messenger to obtain a Microsoft Graph API token directly from Azure tenant?"