Skip to main content

fallback_localpart

Function fallback_localpart 

Source
pub fn fallback_localpart(unique_id: &str) -> Localpart
Expand description

Derive the fallback localpart of an identity from its unique-id string.

The localpart is a lowercase prefix of 15 to 23 characters selected from the string’s contents. An identity whose claimed usernames are unavailable therefore falls back to the same localpart on every sign-in.