Skip to content

Commit 31cd747

Browse files
Update sdb14chat2.html
1 parent d1a7226 commit 31cd747

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

1ShreeRam/sdb14chat2.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ <h1> In APP Web Client for TestCaptcha Deployment</h1>
1515

1616
embeddedservice_bootstrap.init(
1717
'00DRZ00000306Wj',
18-
'miawTestCaptcha2',
19-
'https://chat3.test2.my.pc-rnd.site.com/ESWmiawTestCaptcha21743476245367',
18+
'miawTestCaptchaAuth2',
19+
'https://chat3.test2.my.pc-rnd.site.com/ESWmiawTestCaptchaAuth21743643504822',
2020
{
2121
scrt2URL: 'https://chat3.test2.my.pc-rnd.salesforce-scrt.com'
2222
}
@@ -26,19 +26,19 @@ <h1> In APP Web Client for TestCaptcha Deployment</h1>
2626
}
2727
};
2828

29-
// function setJwtToken(){
30-
// embeddedservice_bootstrap.userVerificationAPI.setIdentityToken({
31-
// identityTokenType : "JWT",
32-
// identityToken : "eyJraWQiOiIxMjM0NSIsImFsZyI6IlJTMjU2In0.eyJpc3MiOiJ0ZXN0SXNzdWVyIiwic3ViIjoidXNlcjEiLCJleHAiOjIzNDA5OTM2OTMsImlhdCI6MTc0MDk5MzY5M30.EveOF-hdaxSBAqA8YnmwWP8_lgO3a8DSIC1ApN9gkoT2sEfzD7cxkieyeEnUTNNQWV49D6IT8UEyB0wXP-vuT7VZiRR0mQqRVo7W7hpctdmLW5uDZWOGuhNevJSNGzQetioRbVEt1dXxVu6GcG1Hgl1WIYrsUBx1UDk-z3Qnr7pg3liZMjzip4pxpAnlnpLgmtc85onCc-2XYs8ak_1DQ0Ha6nMcJi8iAbyDyHqi8hiNw0Y6TnA4mPz8zART-Ab-9dPUDkTxSSksQmVzJo4q2Fdlm2ruqqkH692kMJ-OQmJ4JJWSarGU48MVJn915YfFifmad_vopkm_fyL7pUL0Mg"
33-
// });
34-
// }
35-
// window.addEventListener("onEmbeddedMessagingReady",() => {
36-
// setJwtToken();
37-
// console.log("JWT Token is Set");
38-
// });
29+
function setJwtToken(){
30+
embeddedservice_bootstrap.userVerificationAPI.setIdentityToken({
31+
identityTokenType : "JWT",
32+
identityToken : "eyJraWQiOiIxMjM0NSIsImFsZyI6IlJTMjU2In0.eyJpc3MiOiJ0ZXN0SXNzdWVyIiwic3ViIjoidXNlcjEiLCJleHAiOjIzNDA5OTM2OTMsImlhdCI6MTc0MDk5MzY5M30.EveOF-hdaxSBAqA8YnmwWP8_lgO3a8DSIC1ApN9gkoT2sEfzD7cxkieyeEnUTNNQWV49D6IT8UEyB0wXP-vuT7VZiRR0mQqRVo7W7hpctdmLW5uDZWOGuhNevJSNGzQetioRbVEt1dXxVu6GcG1Hgl1WIYrsUBx1UDk-z3Qnr7pg3liZMjzip4pxpAnlnpLgmtc85onCc-2XYs8ak_1DQ0Ha6nMcJi8iAbyDyHqi8hiNw0Y6TnA4mPz8zART-Ab-9dPUDkTxSSksQmVzJo4q2Fdlm2ruqqkH692kMJ-OQmJ4JJWSarGU48MVJn915YfFifmad_vopkm_fyL7pUL0Mg"
33+
});
34+
}
35+
window.addEventListener("onEmbeddedMessagingReady",() => {
36+
setJwtToken();
37+
console.log("JWT Token is Set");
38+
});
3939

4040
</script>
41-
<script type='text/javascript' src='https://chat3.test2.my.pc-rnd.site.com/ESWmiawTestCaptcha21743476245367/assets/js/bootstrap.min.js' onload='initEmbeddedMessaging()'></script>
41+
<script type='text/javascript' src='https://chat3.test2.my.pc-rnd.site.com/ESWmiawTestCaptchaAuth21743643504822/assets/js/bootstrap.min.js' onload='initEmbeddedMessaging()'></script>
4242

4343

4444

0 commit comments

Comments
 (0)