addyosmani/google-signin — pull request #6 by Scarygami (2014-04-15 11:12:13+00:00)
Title: Change to page-level configuration for signout

Sign-out is a bit of a hassle (as you have experienced yourself).

The `gapi.auth.signOut()` method doesn't accept a callback function (which might be worth adding as issue/request to the relevant team, not sure if Google+ or JS-Client).

The only way I got it to work is to use page-level configuration with meta tags and then using the `gapi.auth.signIn()` / `gapi.auth.signOut()` methods, which always call the same callback function, which unfortunately has be referenced from global namespace.

With page-level configuration the immediate flow will be triggered automatically once gapi is loaded, so no need to check for this (but also no way to prevent this behaviour, except by setting `google-signin-approvalprompt` to `force` in the meta tags)

I understand if you don't want to merge this, but it's the only way I found to make the sign-out work