You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gargle extends httr::Token2.0 with Gargle2.0 and its hash method calls super$hash(). I am seeing that OAuth tokens cached with R 3.5 are un-retrievable after upgrading to 3.6, because their hash has changed due to the change in R's default serialization version. This is not tragic, as OAuth tokens should be regarded as perishable. But it can be somewhat mystifying.
httr2 should always set the version when doing this sort of thing going forward.
The text was updated successfully, but these errors were encountered:
httr has been superseded in favour of httr2, so is no longer under active development. If this problem is still important to you in httr2, I'd suggest filing an issue offer there 😄. Thanks for using httr!
Currently OAuth tokens are indexed by their hash and the method calls
serialize()
without specifying the version:httr/R/oauth-token.r
Lines 104 to 107 in af25ebd
gargle extends
httr::Token2.0
withGargle2.0
and its hash method callssuper$hash()
. I am seeing that OAuth tokens cached with R 3.5 are un-retrievable after upgrading to 3.6, because their hash has changed due to the change in R's default serialization version. This is not tragic, as OAuth tokens should be regarded as perishable. But it can be somewhat mystifying.httr2 should always set the version when doing this sort of thing going forward.
The text was updated successfully, but these errors were encountered: