Skip to main content

get_optional

Function get_optional 

Source
pub fn get_optional(config: &CliConfig) -> Option<CachedOrgTicket>
Expand description

Get org ticket if API key is configured, otherwise return None

This is useful for optional ticket validation - if no API key is set, we fall back to free tier limits without requiring authentication.

When API key is set, this automatically syncs the plan ticket from the dashboard if needed (first use or expired). This enables seamless capacity validation without explicit memvid plan sync.