I am developing an AngularJS application with Google+ user authentication. I took the angular -google-plus package (the Angular module that handles login with the Google+ API).
In this case, the login will use the gapi object:
gapi.auth.authorize(...)
Everything works until the page is refreshed. For example, I can get the current user from the API using:,
gapi.client.oauth2.userinfo.get().execute(function() { ... })but again, the state will not be saved when I refresh the page.
What do I need to do to keep the “Recorded” state after refreshing the page? It looks like the google api is "forgetting" the state.
source
share