Skip to main content

shared_auth_storage

Function shared_auth_storage 

Source
pub fn shared_auth_storage() -> Arc<AuthStorage> 
Expand description

Get a shared singleton Arc<AuthStorage> instance.

Avoids creating multiple AuthStorage::new() instances that each independently read and cache auth.json. All callers share the same in-memory state through the Arc.