Google oauth2 access token expires in 1 hour. I want to make it 1 day
问题 I have created a project with Google OAuth2 credentials for use with Google calendar. However the access toke expires in every 1 hour. Can someone please help me change the expire time to 1 day. I have use this code to access the google calendar events: $client = new Google_Client(); $client->setApplicationName("Client_Library_Examples"); $client->setClientId($client_id); $client->setClientSecret($client_secret); $client->setRedirectUri($redirect_uri); $client->setAccessType('offline');