pub fn parse_token_response<S>(response: Response<S>) -> Result<Token, Error>
where S: AsRef<[u8]>,
Expand description

Once a response has been received for a token request, call this method to deserialize the token and store it in the cache so that future API requests don’t have to retrieve a new token, until it expires.