typeduck-codex-utils-absolute-path 0.10.0

Support package for the standalone Codex Web runtime (codex-login)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Test-only helpers exposed for cross-crate integration tests.
//!
//! Production code should receive an [`AuthRouteConfig`](crate::AuthRouteConfig) adapted from the
//! application's resolved HTTP client factory instead of depending on this module.

use crate::AuthRouteConfig;
use codex_http_client::HttpClientFactory;
use codex_http_client::OutboundProxyPolicy;

/// Returns auth routing that preserves the transport's built-in proxy behavior.
pub fn transport_default_auth_route_config() -> AuthRouteConfig {
    AuthRouteConfig::from_http_client_factory(HttpClientFactory::new(
        OutboundProxyPolicy::ReqwestDefault,
    ))
}