Skip to content
Advertisement

Google Calendar API Token not refreshing

For some reason when my token expires I need to delete the file and reconnect again otherwise nothing is working. Is it because the new token is not stored or?

I have the following code:

JavaScript

Advertisement

Answer

It seems that you are not returning client in case the token expired

Modify your code as shown in the quickstart for PHP to return the client at the end of the function – both if the access token expired and if it did not:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement