From b89aa5bbf700f96d578a69c4934ff55e48a5bd4c Mon Sep 17 00:00:00 2001 From: AdithKrishna S <81422425+adithkrishnaa@users.noreply.github.com> Date: Mon, 30 Dec 2024 19:29:52 +0530 Subject: [PATCH 1/2] Update authtoken --- Frontend/src/hook/useVideoSdk.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frontend/src/hook/useVideoSdk.js b/Frontend/src/hook/useVideoSdk.js index 1cc8932..7482364 100644 --- a/Frontend/src/hook/useVideoSdk.js +++ b/Frontend/src/hook/useVideoSdk.js @@ -12,7 +12,7 @@ const useVideoSDK = (modalIsOpen, handleModal, isMiniModal) => { - const authToken = '' + const authToken = localStorage.getItem("token") || sessionStorage.getItem("token"); if (isMiniModal) { From fae86bc23d3c1c0905196abce6151901869b1a76 Mon Sep 17 00:00:00 2001 From: vivek19f Date: Tue, 31 Dec 2024 01:02:35 +0530 Subject: [PATCH 2/2] update auth token in zoom --- Frontend/src/hook/useVideoSdk.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Frontend/src/hook/useVideoSdk.js b/Frontend/src/hook/useVideoSdk.js index 7482364..c5862cd 100644 --- a/Frontend/src/hook/useVideoSdk.js +++ b/Frontend/src/hook/useVideoSdk.js @@ -12,7 +12,7 @@ const useVideoSDK = (modalIsOpen, handleModal, isMiniModal) => { - const authToken = localStorage.getItem("token") || sessionStorage.getItem("token"); + // const authToken = localStorage.getItem("token") || sessionStorage.getItem("token"); if (isMiniModal) { @@ -43,7 +43,7 @@ const useVideoSDK = (modalIsOpen, handleModal, isMiniModal) => { method: "POST", headers: { "Content-Type": "application/json", - "Authorization": `Bearer ${authToken}` // Replace `authToken` with your token variable + "Authorization": `Bearer ${localStorage.getItem("token") || sessionStorage.getItem("token")}` // Replace `authToken` with your token variable }, });