diff --git a/samples/10.b.customization-password-input/index.html b/samples/10.b.customization-password-input/index.html index 2d1e553562..09d6533833 100644 --- a/samples/10.b.customization-password-input/index.html +++ b/samples/10.b.customization-password-input/index.html @@ -33,11 +33,6 @@ (async function () { 'use strict'; - // In this demo, we are using Direct Line token from MockBot. - // To talk to your bot, you should use the token exchanged using your Direct Line secret. - // You should never put the Direct Line secret in the browser or client app. - // https://docs.microsoft.com/en-us/azure/bot-service/rest-api/bot-framework-rest-direct-line-3-0-authentication - const { connectToWebChat, ReactWebChat } = window.WebChat; const { css } = window.Glamor; @@ -126,6 +121,11 @@ ({ sendPostBack }) => ({ sendPostBack }) )(props => ) + // In this demo, we are using Direct Line token from MockBot. + // To talk to your bot, you should use the token exchanged using your Direct Line secret. + // You should never put the Direct Line secret in the browser or client app. + // https://docs.microsoft.com/en-us/azure/bot-service/rest-api/bot-framework-rest-direct-line-3-0-authentication + const res = await fetch('https://webchat-mockbot.azurewebsites.net/directline/token', { method: 'POST' }); const { token } = await res.json(); const store = createStore();