angular-googleapi
angular-googleapi copied to clipboard
How should session startup work?
It looks like the example "cheats" a little by waiting for the user to click "Authenticate" before using gapi, which allows enough time for client.js to load itself and its dependencies.
I see that there's a handleClientLoad method defined on the googleLogin service, but I don't see it called. Failure to call this method also means that popup blockers block the auth page.
Worth noting, too, that handleClientLoad doesn't even work -- it invokes an unqualified checkAuth, rather than this.checkAuth.