File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,16 @@ import { ConfigsProps } from "../context/reducers/appReducer";
44import { RoomProps } from "../context/reducers/roomsReducer" ;
55import PackageJson from "../package.json" ;
66
7- export interface InitiateProps {
7+ interface AuthKeyProps {
88 apiKey : string ;
99 subscriptionKey : string ;
1010}
1111
12- interface OnlineInfoProps extends InitiateProps {
12+ export interface InitiateProps extends AuthKeyProps {
13+ projectName : string ;
14+ }
15+
16+ interface OnlineInfoProps extends AuthKeyProps {
1317 userIds : string ;
1418}
1519
@@ -18,7 +22,7 @@ type OnlineInfoReturnProps = Pick<
1822 "chatAuthId" | "socketId" | "online"
1923> ;
2024
21- interface ReadTokenProps extends InitiateProps {
25+ interface ReadTokenProps extends AuthKeyProps {
2226 roomIds : string ;
2327}
2428
@@ -33,7 +37,7 @@ const project = {
3337} ;
3438
3539export const initiate = async ( props : InitiateProps ) => {
36- const { apiKey, subscriptionKey } = props ;
40+ const { apiKey, subscriptionKey, projectName } = props ;
3741
3842 try {
3943 const response = await axios . get < ConfigsProps > ( `/api/v1/tenant/config/` , {
You can’t perform that action at this time.
0 commit comments