Creates an instance of [ProjectClient](#projectclient),
        providing session authentication.

        Parameters:

        * `project_id` - project identifier.

        Returns:

        Instance of [ProjectClient](#projectclient) with
        session authentication.

        Example:

        ```python
        client = Client('deform.io')
        session_client = client.auth(
            'session',
            client.user.login('email@example.com', 'password')
        )
        session_client.use_project('some-project-id')
        ```

def use_project(self, project_id):
        """Creates an instance of [ProjectClient](#projectclient),
        providing session authentication.

        Parameters:

        * `project_id` - project identifier.

        Returns:

        Instance of [ProjectClient](#projectclient) with
        session authentication.

        Example:

        ```python
        client = Client('deform.io')
        session_client = client.auth(
            'session',
            client.user.login('email@example.com', 'password')
        )
        session_client.use_project('some-project-id')
        ```

        """
        return ProjectClient(
            base_uri=get_base_uri(
                project=project_id,
                host=self.host,
                port=self.port,
                secure=self.secure,
                api_base_path=self.api_base_path
            ),
            auth_header=self.auth_header,
            requests_session=self.requests_session,
            request_defaults=self.request_defaults,
        )