code: def _get_token(self, request, refresh_token=False):
          
          if self.config.cookie_set():
              token = self._get_token_from_cookies(request, refresh_token)
              if token:
                  return token
  
              else:
                  if self.config.cookie_strict():
                      raise exceptions.MissingAuthorizationCookie()
  
          if self.config.query_string_set():
              token = self._get_token_from_query_string(request, refresh_token)
              if token:
                  return token
  
              else:
                  if self.config.query_string_strict():
                      raise exceptions.MissingAuthorizationQueryArg()
  
          token = self._get_token_from_headers(request, refresh_token)
  
          if token:
              return token
  
          raise exceptions.MissingAuthorizationHeader()
docs: Extract a token from a request object.