kevin-m-kent / youtubeR

https://kevin-m-kent.github.io/youtubeR/
Other
2 stars 1 forks source link

Use gargle #1

Closed jonthegeek closed 1 year ago

jonthegeek commented 1 year ago

It almost certainly makes sense for us to use gargle to handle authentication. There's a little bit of a learning curve to get over, but, once we get through that, gargle handles all the refreshing and other fanciness, and lets us authenticate using things like service accounts without having to do all of the heavy lifting.

See gargle: How to use gargle for auth in a client package for details.

jonthegeek commented 1 year ago

Update: gargle uses httr. We use httr2, because it makes all of this stuff easier. Soooo.... I'm going to implement the stuff we need, rather than counting on gargle for it.