pass authToken to youtube.HasAuth
This commit is contained in:
parent
0be1b75343
commit
c29123e815
4 changed files with 10 additions and 8 deletions
7
dist/bundle.es.js
vendored
7
dist/bundle.es.js
vendored
|
@ -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: () => {
|
||||
|
|
2
dist/flow-typed/LbryFirst.js
vendored
2
dist/flow-typed/LbryFirst.js
vendored
|
@ -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>,
|
||||
};
|
||||
|
|
2
flow-typed/LbryFirst.js
vendored
2
flow-typed/LbryFirst.js
vendored
|
@ -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>,
|
||||
};
|
||||
|
|
|
@ -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: () => {
|
||||
|
|
Loading…
Reference in a new issue