extract_user_id_with_fallback

Function extract_user_id_with_fallback 

Source
pub fn extract_user_id_with_fallback(claims: &OptionalAuthClaims) -> Uuid
Expand description

Extract user ID from OptionalAuthClaims with fallback

Returns the user ID from AuthClaims if available, otherwise returns a default UUID. This is useful for mock servers where authentication may be optional.