I\'m adding a \"Sign In with Google\" federated login button to my site. For desktop I\'m using the popup window which works great like this:
gapi.auth2.init