mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-29 11:06:10 +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;
|
return;
|
||||||
|
|
||||||
const values = { ...cookie.values() };
|
const values = { ...cookie.values() };
|
||||||
const REQUIRED_VALUES = [
|
const REQUIRED_VALUES = [ 'access_token', 'refresh_token' ];
|
||||||
'access_token', 'refresh_token',
|
|
||||||
'client_id', 'client_secret'
|
|
||||||
];
|
|
||||||
|
|
||||||
if (REQUIRED_VALUES.some(x => typeof values[x] !== 'string')) {
|
if (REQUIRED_VALUES.some(x => typeof values[x] !== 'string')) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue