def creds_changed(context: dict, identity_code: str) -> bool:
    """
    Check whether the credentials were changed by the user.
    Args:
        context (dict): Integration context from Demisto.
        identity_code (str): Lansweeper application identity code.
    Returns:
        creds_changed (bool): True if credentials were changed, False otherwise.
    """
    return context.get("identity_code", "") != identity_code