youtube: client_id/client_secret is optional in session data

This commit is contained in:
dumbmoron 2024-07-11 07:56:13 +00:00
parent c1f364929c
commit 2f4e43f78f
No known key found for this signature in database

View file

@ -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;