int128 / gpup

A command to upload photos and movies to Google Photos Library using the official Google Photos Library API
Apache License 2.0
221 stars 22 forks source link

Save new token to config if it has been expired #19

Closed int128 closed 6 years ago

int128 commented 6 years ago

Currently the config contains always old token and it will cause refreshing every time. This refreshes and saves the token to the config if it has been expired.

mkilicarCS commented 6 years ago

I still have the token expiration problem. Once the token is expired, I'm getting the following error. 2018/10/20 21:45:11 Token of ~/.gpupconfig has been expired, refreshing 2018/10/20 21:45:11 Error: Could not refresh the token: oauth2: token expired and refresh token is not set Did I miss any point? Regards