mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-28 09:28:29 +00:00
generate-youtube-tokens: update response format
This commit is contained in:
parent
404cad711f
commit
20c409cdb3
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user