azalea_auth::cache

Function get_account_in_cache

Source
pub async fn get_account_in_cache(
    cache_file: &Path,
    email: &str,
) -> Option<CachedAccount>
Expand description

Gets cached data for the given email.

Technically it doesn’t actually have to be an email since it’s only the cache key. I considered using usernames or UUIDs as the cache key, but usernames change and no one has their UUID memorized.