f2calv / CasCap.Apis.GooglePhotos

*unofficial* Google Photos REST API library for .NET projects.
MIT License
60 stars 11 forks source link

How to find the lifetime of a login token. #119

Open rgelb opened 1 year ago

rgelb commented 1 year ago

I want to add a huge amount of photos (let's say 1000) which will takes a long time. After a while I get Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential error when calling any method on the library.

How do I find out when the OAuth access token is expiring?

P.S. My current workaround is to basically new up GooglePhotosService. Is there a better way?