    def login(self, password, token):
        """
        Login with Authenticated user.

        Args:
            password (`str`):
                Authenticated user's password.
            token (`str`):
                Authenticated user's token.

        Raises:
            (`HTTPError`)
                Raise error in request.
        """
        url = self._root + '/user/login'
        data = {
            'user_name': self._author,
            'password': password,
            '_csrf': token
        }
        try:
            response = requests.post(url, data=data)
            response.raise_for_status()
        except HTTPError as e:
            raise e
Login with Authenticated user.

Args:
password (`str`):
Authenticated user's password.
token (`str`):
Authenticated user's token.

Raises:
(`HTTPError`)
Raise error in request.
towhee/utils/hub_utils.py