Wappler 4.4.4.
NodeJS
VPS with Plesk panel
Good day, everyone!
While administrating my website, sometimes I need to export data to Google Sheets.
I connected to Google API with a service account according to this instruction and everything seemd working well for a while.
But later I started to notice 401 error ACCESS_TOKEN_EXPIRED when I am trying to make an API request to google.
It disappears after I republish the website or after I open it in the incognito browser mode. Manual deletion of “sitename.sid” cookie helps as well.
But of course this needs a proper solution.
Is this a bug or I made some wrong settings?
Or using JWT and google Oauth2 needs some additional tweaking, beside steps in instruction?
Because I see many thorough instructions by @psweb here and here regarding tokens refresh issue with Google API. Is this still relevant now?
Any help and ideas are much appreciated!