You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this typescript function that is called when I click a button to initialize ccp. For some reason onInitialized works fine and the callback is called, but this isn't the case for onAuthFail or onAuthorizeSuccess. Please help, I'm using react if that helps.
functioninitCCP(){if(!containerDiv.current||!window.connect)returnwindow.open(instanceURL,connect.MasterTopics.LOGIN_POPUP,"width=400,height=600")connect.core.initCCP(containerDiv.current,{ccpUrl: instanceURL,// REQUIREDloginPopup: false,// optional, defaults to `true`loginPopupAutoClose: true,// optional, defaults to `false`loginOptions: {// optional, if provided opens login in new windowautoClose: true,// optional, defaults to `false`height: 600,// optional, defaults to 578width: 400,// optional, defaults to 433top: 0,// optional, defaults to 0left: 0// optional, defaults to 0},region: "us-west-2",// REQUIRED for `CHAT`, optional otherwisesoftphone: {// optional, defaults below apply if not providedallowFramedSoftphone: true,// optional, defaults to falsedisableRingtone: false,// optional, defaults to false},pageOptions: {//optionalenableAudioDeviceSettings: false,//optional, defaults to 'false'enablePhoneTypeSettings: true//optional, defaults to 'true'},});connect.core.onInitialized(()=>{setInitialized(true)console.log("✅ Amazon Connect Streams Initialized");});connect.core.onAuthFail(()=>{console.log('❌ not logged in!')});connect.core.onAuthorizeSuccess(()=>{console.log('✅ logged in!')});}
The text was updated successfully, but these errors were encountered:
I have this typescript function that is called when I click a button to initialize ccp. For some reason onInitialized works fine and the callback is called, but this isn't the case for onAuthFail or onAuthorizeSuccess. Please help, I'm using react if that helps.
The text was updated successfully, but these errors were encountered: