Skip to main content

users_me

Function users_me 

Source
pub async fn users_me(
    state: State<ApiState>,
    headers: HeaderMap,
) -> impl IntoResponse
Expand description

GET /users/me — returns the authenticated user’s profile.

Convenience alias that delegates to userinfo.

§Example

// GET /users/me  Authorization: Bearer <token>
let resp = users_me(state, headers).await;