I have integrated the Google Calendar with my React application by following this article. (The associated Google Cloud project is still in testing state. Not published.) I have encountered the following two issues.
- Access token expired within 3599 seconds. (around 1 hour)
- Upon manually refreshing any page of the application, need to reinitiate gapi client. (gapi.client.getToken() returns null) But without refreshing the page if I navigate between pages still the session is kept alive and able to communicate with the calendar as I am persisting the state using localstorage.
Is that expected behavior or have I made any mistakes?