Skip to content

Commit

Permalink
Move comment
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim committed Jan 14, 2019
1 parent a973082 commit 93ff0d8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions samples/10.b.customization-password-input/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -126,6 +121,11 @@
({ sendPostBack }) => ({ sendPostBack })
)(props => <PasswordInputActivity { ...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();
Expand Down

0 comments on commit 93ff0d8

Please sign in to comment.