Help for web.cookies.check_consent

Sample CLI

gway web.cookies check-consent

Full Code

def check_consent() -> bool:
    """
    Returns True if the user has accepted cookies (not blank, not None).
    """
    cookie_value = get("cookies_accepted")
    return cookie_value == "yes"