From 2f4e43f78f84ca53458c7e14d9a0a96fd5b1f7c1 Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Thu, 11 Jul 2024 07:56:13 +0000 Subject: [PATCH] youtube: client_id/client_secret is optional in session data --- src/modules/processing/services/youtube.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/modules/processing/services/youtube.js b/src/modules/processing/services/youtube.js index b3a405e7..7beca2b4 100644 --- a/src/modules/processing/services/youtube.js +++ b/src/modules/processing/services/youtube.js @@ -29,10 +29,7 @@ const transformSessionData = (cookie) => { return; const values = { ...cookie.values() }; - const REQUIRED_VALUES = [ - 'access_token', 'refresh_token', - 'client_id', 'client_secret' - ]; + const REQUIRED_VALUES = [ 'access_token', 'refresh_token' ]; if (REQUIRED_VALUES.some(x => typeof values[x] !== 'string')) { return;