Function cargo::util::auth::auth_token_optional
source ยท fn auth_token_optional(
gctx: &GlobalContext,
sid: &SourceId,
operation: Operation<'_>,
headers: Vec<String>,
require_cred_provider_config: bool,
) -> CargoResult<Option<Secret<String>>>
Expand description
Returns the token to use for the given registry.