From 3f7da4dd30b6be9ebfbb58a846fc7426b19570e5 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh <hi@midhun.dev> Date: Wed, 16 Feb 2022 15:24:02 +0530 Subject: [PATCH] Add token to config/config-type --- public/config.json | 3 ++- src/types/IChatterboxConfig.ts | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/public/config.json b/public/config.json index b846d1b..c6e0925 100644 --- a/public/config.json +++ b/public/config.json @@ -5,5 +5,6 @@ "header": { "title": "Chatterbox Test Room", "avatar": "https://i.picsum.photos/id/907/200/200.jpg?hmac=SdeLZNONJ3CX-OB15hSXsCheWDC6yYac5N5VUJM7FIQ" - } + }, + "token": "k9SL1R~GcdbjiFjC" } diff --git a/src/types/IChatterboxConfig.ts b/src/types/IChatterboxConfig.ts index d80f5ff..789fcc5 100644 --- a/src/types/IChatterboxConfig.ts +++ b/src/types/IChatterboxConfig.ts @@ -6,6 +6,8 @@ export interface IChatterboxConfig { username_prefix: string; // Configurations for header on chatterbox (containing title, avatar, minimize button) header: IHeader; + // Token needed for token-authenticated registration + token: string; } interface IHeader { -- GitLab