pass authToken to youtube.HasAuth

This commit is contained in:
Sean Yesmunt 2020-07-10 12:36:30 -04:00
parent 0be1b75343
commit c29123e815
4 changed files with 10 additions and 8 deletions

7
dist/bundle.es.js vendored
View file

@ -1275,9 +1275,10 @@ const LbryFirst = {
return lbryFirstCallWithResult('youtube.Upload', uploadParams);
},
hasYTAuth: () => {
const emptyParams = {};
return lbryFirstCallWithResult('youtube.HasAuth', emptyParams);
hasYTAuth: token => {
const hasYTAuthParams = {};
hasYTAuthParams.AuthToken = token;
return lbryFirstCallWithResult('youtube.HasAuth', hasYTAuthParams);
},
ytSignup: () => {

View file

@ -94,6 +94,6 @@ declare type LbryFirstTypes = {
status: () => Promise<StatusResponse>,
version: () => Promise<VersionResponse>,
upload: any => Promise<?UploadResponse>,
hasYTAuth: () => Promise<HasYTAuthResponse>,
hasYTAuth: string => Promise<HasYTAuthResponse>,
ytSignup: () => Promise<YTSignupResponse>,
};

View file

@ -94,6 +94,6 @@ declare type LbryFirstTypes = {
status: () => Promise<StatusResponse>,
version: () => Promise<VersionResponse>,
upload: any => Promise<?UploadResponse>,
hasYTAuth: () => Promise<HasYTAuthResponse>,
hasYTAuth: string => Promise<HasYTAuthResponse>,
ytSignup: () => Promise<YTSignupResponse>,
};

View file

@ -64,9 +64,10 @@ const LbryFirst: LbryFirstTypes = {
return lbryFirstCallWithResult('youtube.Upload', uploadParams);
},
hasYTAuth: () => {
const emptyParams = {};
return lbryFirstCallWithResult('youtube.HasAuth', emptyParams);
hasYTAuth: (token: string) => {
const hasYTAuthParams = {};
hasYTAuthParams.AuthToken = token;
return lbryFirstCallWithResult('youtube.HasAuth', hasYTAuthParams);
},
ytSignup: () => {