I’ve been playing around with the Google Calendar API and have set up a basic CLI to list events as detailed here: https://developers.google.com/calendar/quickstart/php
However, after an hour or so it’s losing the access token and requires reauthentication. From what I can gather, it needs a refresh token but I presume it isn’t able to get one.
Am I doing something wrong? The code for the Auth part is pulled directly from that quickstart guide so struggling to understand. Thanks in advance!