from src.config import Settings


def build_cookie_options(settings: Settings) -> dict[str, str | bool | None]:
    return {
        "httponly": True,
        "secure": settings.cookie_secure,
        "samesite": settings.cookie_samesite,
        "domain": settings.cookie_domain,
    }
