Hi,
I'm customizing the framework.js of the embeddable framework integration.
Whenever I try to retrieve the token from the embeddable framework file:
window.PureCloud.User.getAuthToken(function (token) {
console.log("TOKEN: ", token);
})
I get this response: 'You are not authorized to access the auth token. Auth tokens require the use of a configured clientId'
The same code with the same clientId does not give any problem when served from localhost and I can work with the token without any Issue.
I would expect that if the problem was within the clientId it wouldn't work from localhost as well, do you have any idea on how to solve this problem?
I assume you are testing a private embeddable framework integration in deployment stage.
If so, have you added the enableFrameworkClientId=true query parameter in your iframe src url?
As described here and here.
And of course update the framework.js in the Private Genesys Cloud Embeddable Framework integration.
As noted in this page: "You can upload a new framework.js to replace an existing file at any time. Due to caching, users must refresh their client to see the effect of the new file. Any changes to the integration may take several minutes to appear."