virtualscienceforum / automation

Scripts for running the VSF
BSD 2-Clause "Simplified" License
0 stars 1 forks source link

youtube token renewal #36

Closed akhmerov closed 3 years ago

akhmerov commented 3 years ago

Youtube oauth token expires within an hour. It's possible to use a refresh token to get a new one, however it seems that you can't refresh the same token several times.

The solution to that is to save the updated token into the secret. PyGithub doesn't seem to support this, but it's a simple PUT request.

akhmerov commented 3 years ago

It's a bit hard to support before https://github.com/PyGithub/PyGithub/pull/1681 is merged.

akhmerov commented 3 years ago

Should be fixed. I switched to the master branch of pygithub because the are slow to release :( I'll switch back once the new version is out.