mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-28 18:46:09 +00:00
youtube: client_id/client_secret is optional in session data
This commit is contained in:
parent
c1f364929c
commit
2f4e43f78f
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue