create_secure_storage

Function create_secure_storage 

Source
pub fn create_secure_storage() -> Box<dyn SecureStorage>
Expand description

Create the appropriate secure storage implementation based on features.

When the security feature is enabled, this returns a keychain-backed storage unless keychain access has been explicitly disabled. Otherwise, it returns an in-memory mock storage suitable for tests and constrained environments.