[Google Calendar Integration] How to refresh access token?

[Google Calendar Integration] How to refresh access token?

Forge Component
Published on 2014-09-03 by Isaac Blaise
4 votes
Published on 2014-09-03 by Isaac Blaise
Hi guys! I've a problem. I'm using your component and i can successfully give permission to my application to manage my calendar on google. However i've a problem... google token as an expires_in parameter (3600s i think) and after this time (1h) i've always error when i try to getevents from my calendar and i've to give authorization again. How can i use the refresh_token to get a new access_token? Anyone knows how can i do this?

Hi Diogo,

I'm sorry for delay in responding. As far as I know, you will have to exchange your token once it expires, and this is enforced by Google. It's quite possible (though I'm unsure) that the expiration of the token after 1 hour is by design. This is what I've used as documentation...


If you learn anything new, please reply to this thread.