pub fn modify_credential(
provider: &str,
f: impl FnOnce(Option<AuthCredential>) -> Option<AuthCredential>,
) -> Result<()>Expand description
Atomically modify a single provider’s credential (pi-compatible CredentialStore.modify()).
f receives the current credential (None if missing), returns the new
credential, or None to delete the entry.