I have a web app with a Google plus login button. What I want to do is to have the app be notified that the user has logged in once the login process on the google side completes (in a new tab).
The server can of course detect that the client has logged in once the process finishes, since google redirects it to a callback url on the server, but how can this information be passed on to the client?