Embeddable Frame Uncaught TypeError:

Can anyone help with the error below. I am trying to get an authToken using the private Embeddable Framework. The Embeddable Framework is working but hen I add the following JavaScript code. I get the below error?

window.PureCloud.User.getAuthToken(function (token) { console.log("TEST: ", token);authToken = token; })

Uncaught TypeError: Cannot read properties of undefined (reading 'User')

Figured this out. Added the following to the framework.js file.

window.PureCloud.User.getAuthToken(function (token) {
window.parent.postMessage(JSON.stringify({ type: "userActionSubscription", data: { token: token } }), "*");
});

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.