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
I am enabling serde_json's arbitrary_precision feature in an upstream crate, which strangely causes the serde_json::from_slice::<serde_json::Value>(json_data) call in TokenInfo::from_json to return an Err.
Apologies for raising the issue in this repository, but I would like to ask if you would consider accepting a workaround which means this crate can still be used when the arbitrary_precision feature is turned on? Specifically, I'd like to change the deserialization to
// Serialize first to a `serde_json::Value` then to `AuthErrorOr<RawToken>` to work around this bug in// serde_json: https://github.com/serde-rs/json/issues/559let raw_token = serde_json::from_slice::<serde_json::Value>(json_data)?;letRawToken{
access_token,
refresh_token,
token_type,
expires_in,} = <AuthErrorOr<RawToken>>::deserialize(raw_token)?.into_result()?;
The text was updated successfully, but these errors were encountered:
I am enabling
serde_json
'sarbitrary_precision
feature in an upstream crate, which strangely causes theserde_json::from_slice::<serde_json::Value>(json_data)
call inTokenInfo::from_json
to return anErr
.I believe this is due to an issue in serde_json:
serde-rs/json#559
Apologies for raising the issue in this repository, but I would like to ask if you would consider accepting a workaround which means this crate can still be used when the
arbitrary_precision
feature is turned on? Specifically, I'd like to change the deserialization toThe text was updated successfully, but these errors were encountered: