pub fn parse_token_response(body: &str) -> Result<TokenPair, TokenError>Expand description
Reads a token pair from the JSON document the token endpoint answers with.
ยงErrors
Returns TokenError::Refused when the document reports an error and
TokenError::Malformed when it is not JSON or lacks a field. The document itself is
never copied into the error.