Brandon_Hall | 2023-06-06 15:19:44 UTC | #1
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')
Brandon_Hall | 2023-06-09 15:06:08 UTC | #2
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 } }), "*"); });
system | 2023-07-10 15:06:42 UTC | #3
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 20280