We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 647b6fa commit 7edb47bCopy full SHA for 7edb47b
in-app-messaging-js/chat.js
@@ -1,5 +1,5 @@
1
-const ALICE_JWT = '';
2
-const BOB_JWT = '';
+const USER1_JWT = '';
+const USER2_JWT = '';
3
const CONVERSATION_ID = '';
4
5
const messageTextarea = document.getElementById("messageTextarea");
@@ -18,11 +18,11 @@ let messagesCount = 0;
18
let messageDate;
19
20
function authenticate(username) {
21
- if (username == "Alice") {
22
- return ALICE_JWT;
+ if (username == "USER1_NAME") {
+ return USER1_JWT;
23
}
24
- if (username == "Bob") {
25
- return BOB_JWT;
+ if (username == "USER2_NAME") {
+ return USER2_JWT;
26
27
alert("User not recognized");
28
0 commit comments