Skip to content

Commit 647b6fa

Browse files
authored
Update chat.js
updates to Alice and Bob
1 parent c3132d5 commit 647b6fa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

in-app-messaging-js/chat.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const USER1_JWT = '';
2-
const USER2_JWT = '';
1+
const ALICE_JWT = '';
2+
const BOB_JWT = '';
33
const CONVERSATION_ID = '';
44

55
const messageTextarea = document.getElementById("messageTextarea");
@@ -18,11 +18,11 @@ let messagesCount = 0;
1818
let messageDate;
1919

2020
function authenticate(username) {
21-
if (username == "USER1_NAME") {
22-
return USER1_JWT;
21+
if (username == "Alice") {
22+
return ALICE_JWT;
2323
}
24-
if (username == "USER2_NAME") {
25-
return USER2_JWT;
24+
if (username == "Bob") {
25+
return BOB_JWT;
2626
}
2727
alert("User not recognized");
2828
}

0 commit comments

Comments
 (0)