# LastID SDK - Environment Variable Interpolation Example
#
# This configuration demonstrates using environment variables in TOML config.
# Use SDKConfig::from_toml_with_env() to load this file.
#
# Set environment variables before loading:
#   export LASTID_IDP_URL="https://human.lastid.co"
#   export LASTID_REGISTRY_URL="https://registry.lastid.co/v1/trust-registry"

# The ${VAR_NAME} syntax is interpolated at load time
idp_endpoint = "${LASTID_IDP_URL}"

# Optional custom trust registry
trust_registry_endpoint = "${LASTID_REGISTRY_URL}"

# Environment variables can also be set directly and override config values:
#   LASTID_ENDPOINT - overrides idp_endpoint
#   LASTID_TRUST_REGISTRY_ENDPOINT - overrides trust_registry_endpoint
#   LASTID_TIMEOUT - overrides timeout_seconds
#   LASTID_POLLING_TIMEOUT - overrides polling.max_duration_seconds
#   LASTID_RETRY_MAX_ATTEMPTS - overrides retry.max_attempts
#   LASTID_CACHE_ENABLED - overrides cache.enabled
#   LASTID_CACHE_TTL - overrides cache.ttl_seconds

timeout_seconds = 30

[polling]
initial_interval_ms = 2000
max_interval_ms = 30000
max_duration_seconds = 300

[retry]
max_attempts = 3
initial_delay_ms = 1000

[cache]
enabled = true
ttl_seconds = 60
