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