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);
|
return lbryFirstCallWithResult('youtube.Upload', uploadParams);
|
||||||
},
|
},
|
||||||
|
|
||||||
hasYTAuth: () => {
|
hasYTAuth: token => {
|
||||||
const emptyParams = {};
|
const hasYTAuthParams = {};
|
||||||
return lbryFirstCallWithResult('youtube.HasAuth', emptyParams);
|
hasYTAuthParams.AuthToken = token;
|
||||||
|
return lbryFirstCallWithResult('youtube.HasAuth', hasYTAuthParams);
|
||||||
},
|
},
|
||||||
|
|
||||||
ytSignup: () => {
|
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>,
|
status: () => Promise<StatusResponse>,
|
||||||
version: () => Promise<VersionResponse>,
|
version: () => Promise<VersionResponse>,
|
||||||
upload: any => Promise<?UploadResponse>,
|
upload: any => Promise<?UploadResponse>,
|
||||||
hasYTAuth: () => Promise<HasYTAuthResponse>,
|
hasYTAuth: string => Promise<HasYTAuthResponse>,
|
||||||
ytSignup: () => Promise<YTSignupResponse>,
|
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>,
|
status: () => Promise<StatusResponse>,
|
||||||
version: () => Promise<VersionResponse>,
|
version: () => Promise<VersionResponse>,
|
||||||
upload: any => Promise<?UploadResponse>,
|
upload: any => Promise<?UploadResponse>,
|
||||||
hasYTAuth: () => Promise<HasYTAuthResponse>,
|
hasYTAuth: string => Promise<HasYTAuthResponse>,
|
||||||
ytSignup: () => Promise<YTSignupResponse>,
|
ytSignup: () => Promise<YTSignupResponse>,
|
||||||
};
|
};
|
||||||
|
|
|
@ -64,9 +64,10 @@ const LbryFirst: LbryFirstTypes = {
|
||||||
return lbryFirstCallWithResult('youtube.Upload', uploadParams);
|
return lbryFirstCallWithResult('youtube.Upload', uploadParams);
|
||||||
},
|
},
|
||||||
|
|
||||||
hasYTAuth: () => {
|
hasYTAuth: (token: string) => {
|
||||||
const emptyParams = {};
|
const hasYTAuthParams = {};
|
||||||
return lbryFirstCallWithResult('youtube.HasAuth', emptyParams);
|
hasYTAuthParams.AuthToken = token;
|
||||||
|
return lbryFirstCallWithResult('youtube.HasAuth', hasYTAuthParams);
|
||||||
},
|
},
|
||||||
|
|
||||||
ytSignup: () => {
|
ytSignup: () => {
|
||||||
|
|
Loading…
Reference in a new issue