I'm currently developing a Data Collection (Launch) extension where I'll be utilizing the reactor.adobe.io API from within the extension.
Everything works great, but I'm required to update my bearer token every 24 hours manually.
I want the extension to automatically fetch a new bearer token when the old one expires.
To that end, I'm trying to refresh my bearer token from the endpoint ("https://ims-na1.adobelogin.com/ims/token/v3") when the token expires, but I'm receiving a CORS error.
Is this a feasible approach, or is there a better way to use the reactor API from within a data collection (launch) extension to avoid the CORS error?