Skip to main content

clear_credential_with_mode

Function clear_credential_with_mode 

Source
pub fn clear_credential_with_mode(
    provider: &str,
    key_name: &str,
    storage_mode: AuthCredentialsStoreMode,
) -> Result<Option<CredentialIdentity>>
Expand description

Clear a provider/key credential from secure storage.

Legacy provider-only storage is cleared only for the provider’s default key name. Non-default identities must never delete or reuse that legacy entry because its profile is ambiguous.