diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 0b56a63..9a3f93b 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -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: () => { diff --git a/dist/flow-typed/LbryFirst.js b/dist/flow-typed/LbryFirst.js index 850fa88..b068f5f 100644 --- a/dist/flow-typed/LbryFirst.js +++ b/dist/flow-typed/LbryFirst.js @@ -94,6 +94,6 @@ declare type LbryFirstTypes = { status: () => Promise, version: () => Promise, upload: any => Promise, - hasYTAuth: () => Promise, + hasYTAuth: string => Promise, ytSignup: () => Promise, }; diff --git a/flow-typed/LbryFirst.js b/flow-typed/LbryFirst.js index 850fa88..b068f5f 100644 --- a/flow-typed/LbryFirst.js +++ b/flow-typed/LbryFirst.js @@ -94,6 +94,6 @@ declare type LbryFirstTypes = { status: () => Promise, version: () => Promise, upload: any => Promise, - hasYTAuth: () => Promise, + hasYTAuth: string => Promise, ytSignup: () => Promise, }; diff --git a/src/lbry-first.js b/src/lbry-first.js index 8b2deb7..4dcb39e 100644 --- a/src/lbry-first.js +++ b/src/lbry-first.js @@ -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: () => {