youtube / api-samples

Code samples for YouTube APIs, including the YouTube Data API, YouTube Analytics API, and YouTube Live Streaming API. The repo contains language-specific directories that contain the samples.
5.52k stars 2.98k forks source link

javascript/auth.js #12

Open mr21 opened 10 years ago

mr21 commented 10 years ago

Hi,

In the file javascript/auth.js

The line: if (authResult) { will be always true (authResult is an object, connection failed or not). So, if we replace this line by this one: if (authResult && authResult.status.signed_in) { it's work :)

(enfin.. pour moi ca marche en tout cas)

zakhar-gulchak commented 9 years ago

It was fixed. Issue can be closed.