Skip to main content

user_from_request

Function user_from_request 

Source
pub fn user_from_request(parts: &Parts) -> Option<&User>
Expand description

The user attached by auth, or None if the request was not authenticated. In axum you can also take an Extension<User> directly.