When I did use the gapi.auth.init function I did have a callback and
that part worked. My init called init with the callback of
GPAS.checkAuth and the checkAuth had a callback of
GPAS.handleAuthResult(resp). The init call worked fine and the
GPAS.checkAuth was called, but then the call to gapi.auth.authorize
failed and the final function handleAuthResult was not called. When
you suggested trying immediate: false, I tried that first with the
init function in place. That failed so I also tried skipping the init
function and got the origin_mismatch.
Mike
On Jan 6, 3:24 pm, Brendan <
obr...@google.com> wrote:
> Yes, your posts are moderated so I have to approve them. I've added
> you to the whitelist, so in the future your posts should show up
> immediately.
>
> I believe what's happening is that the callback method to
> gapi.auth.init is not optional (this is a bug). Try adding a dummy
> callback as a workaround:
>
> gapi.auth.init(function() {})
>
> As for origin_mismatch, check your origins for your client ID. See
> this section of the guide:
http://code.google.com/p/google-api-javascript-client/wiki/Authentica...