mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
youtube: client_id/client_secret is optional in session data
This commit is contained in:
parent
c1f364929c
commit
2f4e43f78f
1 changed files with 1 additions and 4 deletions
|
@ -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