angular-googleapi icon indicating copy to clipboard operation
angular-googleapi copied to clipboard

How should session startup work?

Open djmitche opened this issue 11 years ago • 1 comments

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.

djmitche avatar Jul 20 '14 13:07 djmitche

Worth noting, too, that handleClientLoad doesn't even work -- it invokes an unqualified checkAuth, rather than this.checkAuth.

djmitche avatar Jul 20 '14 14:07 djmitche