r-lib / gargle

Infrastructure for calling Google APIs from R, including auth
https://gargle.r-lib.org/
Other
113 stars 33 forks source link

Inline httr2's secret functions; add JSON-oriented wrappers #259

Closed jennybc closed 1 year ago

jennybc commented 1 year ago

This PR "deprecates" gargle's existing secret_* functions, in favor of httr2's.

I use quotes around "deprecate" because gargle never actually exported these functions, so it's a semi-internal matter. We've always viewed encryption as a development-time task, so those functions didn't need to be exported from gargle. As for decryption, I call gargle's unexported functions via :::, which works because I'm the common maintainer of all the relevant packages. Other developers might do the same (?) or we've also said one could just inline the decryption logic.

Why switch to httr2's functions?

What's new?