nilotpaul / go-downloader

0 stars 0 forks source link

session refresh doesn't work sometimes #1

Open nilotpaul opened 2 months ago

nilotpaul commented 2 months ago

Sometimes the session gets invalid and refreshing doesn't work.

nilotpaul commented 2 months ago

No issues in the refresh mechanism, the go oauth2 lib returns token to be valid, but the GDrive api gives an unauthorized error.

nilotpaul commented 1 month ago

The GDrive API returns unauthorized error even before the access token becomes invalid, this might be related to the number of download attempts(not sure). For now added a force refresh endpoint which manually refreshes the session.