code: def make_token_post(server, data):
      
      try:
          response = requests.post(server + TOKEN_ENDPOINT, data=data, timeout=TIMEOUT)
          body = response.json()
      except Exception as e:
          log.warning('Other error when exchanging code', exc_info=True)
          raise OAuthException(
              error='Authentication Failed',
              error_description=str(e))
      if 'error' in body:
          log.error(body)
          raise OAuthException(
              error=body.get('error', 'Unknown Error'),
              error_description = body.get('error_description', ''))
      return body
docs: Try getting an access token from the server. If successful, returns the
      JSON response. If unsuccessful, raises an OAuthException.