mirror of
https://github.com/wukko/cobalt.git
synced 2025-01-12 11:52:12 +01:00
generate-youtube-tokens: update response format
This commit is contained in:
parent
404cad711f
commit
20c409cdb3
1 changed files with 3 additions and 3 deletions
|
@ -20,9 +20,9 @@ tube.session.once(
|
||||||
);
|
);
|
||||||
|
|
||||||
tube.session.once('auth-error', (err) => bail('An error occurred:', err));
|
tube.session.once('auth-error', (err) => bail('An error occurred:', err));
|
||||||
tube.session.once('auth', ({ status, credentials, ...rest }) => {
|
tube.session.once('auth', ({ credentials }) => {
|
||||||
if (status !== 'SUCCESS') {
|
if (!credentials.access_token) {
|
||||||
bail('something went wrong', rest);
|
bail('something went wrong');
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(
|
console.log(
|
||||||
|
|
Loading…
Reference in a new issue