googleworkspace / php-samples

PHP samples for Google Workspace APIs
Apache License 2.0
288 stars 348 forks source link

Token expire in 3600 issue #42

Closed sahsuraj closed 5 years ago

sahsuraj commented 5 years ago

why its require to generate token again after 3600 , first time calendar api work fine as per google code but after expire 3600 need to generate again through quickstart.php , can its generate automatically?

erickoledadevrel commented 5 years ago

You can read more about access token expiration and using refresh tokens here:

https://developers.google.com/identity/protocols/OAuth2WebServer