Skip to main content

resolve_token

Function resolve_token 

Source
pub fn resolve_token(
    registry_host: &str,
    flag_token: Option<&str>,
) -> Result<Option<ResolvedToken>>
Expand description

Resolve a token without prompting. Returns Ok(None) when no token is available — the caller decides whether to trigger device flow, fail, or proceed without auth (install doesn’t need one).