From 660a44c918a0ff959e616d1ee3bd231d7b57c10e Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 27 Feb 2025 11:37:44 -0800 Subject: [PATCH] fix: insecure connection over LAN --- src/lib/utils/onedrive-file-picker.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/utils/onedrive-file-picker.ts b/src/lib/utils/onedrive-file-picker.ts index d26469529..7abf52204 100644 --- a/src/lib/utils/onedrive-file-picker.ts +++ b/src/lib/utils/onedrive-file-picker.ts @@ -1,3 +1,5 @@ +import { v4 as uuidv4 } from 'uuid'; + let CLIENT_ID = ''; async function getCredentials() { @@ -84,7 +86,7 @@ const params = { authentication: {}, messaging: { origin: window?.location?.origin, - channelId: crypto.randomUUID() + channelId: uuidv4() }, typesAndSources: { mode: 'files',