Closed naphtul closed 8 years ago
did you find any solution?
My solution was to use "access" token instead of the "id" token. You can read about it here. https://developers.google.com/identity/protocols/OAuth2UserAgent#formingtheurl Pay attention to the differences between the token types.
I have implemented this very useful directive in my application. However, if I leave the app open for a while, the next server request tells me that the token is invalid/expired. How do I request a longer-lasting token? Alternatively, how do I refresh the token before every request to my server (that will authenticate its validity against Google servers)?