Skip to main content

resolve_fallback_access_token

Function resolve_fallback_access_token 

Source
fn resolve_fallback_access_token(
    env_var: impl FnOnce() -> Option<String>,
    persist: impl FnOnce(&str),
    stored: impl FnOnce() -> Option<String>,
) -> Option<String>
Expand description

Pure resolution-order logic backing steps 2/3 of resolve_access_token, factored out so it is unit-testable without touching a real OS keychain (identity::secret_store wraps the keyring crate directly with no mockable seam, so tests inject plain closures here instead).