generate-youtube-tokens: update response format

This commit is contained in:
dumbmoron 2024-07-10 15:14:28 +00:00
parent 404cad711f
commit 20c409cdb3
No known key found for this signature in database

View file

@ -20,9 +20,9 @@ tube.session.once(
);
tube.session.once('auth-error', (err) => bail('An error occurred:', err));
tube.session.once('auth', ({ status, credentials, ...rest }) => {
if (status !== 'SUCCESS') {
bail('something went wrong', rest);
tube.session.once('auth', ({ credentials }) => {
if (!credentials.access_token) {
bail('something went wrong');
}
console.log(