--
You received this message because you are subscribed to a topic in the Google Groups "Google API JavaScript Client" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-api-javascript-client/_o9QtbsHZKU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-api-javascrip...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and all its topics, send an email to google-api-javascript-client+unsub...@googlegroups.com.
Giles -I misunderstood your implementation.As you've implemented this entirely on the client, you're right. There is (AFAIK) no way to refresh the access token once it expires without showing the access popup again.The only way to get by this is to create a server-side component and do the refreshing there on behalf of the account owner. Sorry.- Kurt
On Wednesday, March 2, 2016 at 11:54:12 PM UTC-8, Giles Roadnight wrote:Thanks for the response but that code doesn't actually log in at any point does it. I assume that you give it an access token and refresh token from elsewhere. My point was that using the client only authorisation method you don't get a refresh token so you can't refresh.
On Mon, Feb 29, 2016 at 10:48 PM Kurt Freytag <ku...@freytag.com> wrote:
Giles -A very late response to your query. If you are still having issues, you could take a look at an npm module I recently published. It uses the REST API to handle token validation and refresh:- Kurt--
On Friday, February 5, 2016 at 12:43:14 AM UTC-8, Giles Roadnight wrote:Hi AllAs a learning experiment I have already implemented a javascript app that uses OAuth to authorise access to Google api. It uses the client only path as detailed here:I got it all working fine but using the client only path with no secret key it seemed impossible to refresh the access token without showing the grant access popup again.If the google written client library uses the same api under the covers I was wondering how it manages to refresh the token?Many Thanks
You received this message because you are subscribed to a topic in the Google Groups "Google API JavaScript Client" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-api-javascript-client/_o9QtbsHZKU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-api-javascrip...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Google API JavaScript Client" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-api-javascript-client/_o9QtbsHZKU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-api-javascrip...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to google-api-javascript-client+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Google API JavaScript Client" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-api-javascript-client/_o9QtbsHZKU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-api-javascript-client+unsub...@googlegroups.com.