What
Return the current authenticated user's profile.
Why
Required for any frontend to show the logged-in user's info. The simplest protected endpoint — validates the full auth flow end-to-end.
Acceptance Criteria
Implementation Notes
pub async fn get_me(
CurrentUser(user): CurrentUser,
) -> impl IntoResponse {
Json(UserResponse::from(user))
}
What
Return the current authenticated user's profile.
Why
Required for any frontend to show the logged-in user's info. The simplest protected endpoint — validates the full auth flow end-to-end.
Acceptance Criteria
GET /api/v1/users/me(protected)200with{"id", "email", "username", "display_name", "bio", "avatar_url", "email_verified_at", "created_at"}401if no valid Bearer token///doc comments;cargo doc --no-depsproduces no warnings for this moduledocs/bruno/auth/get-me.bruadded (or updated) with example request body and expected response shapes; uses{{base_url}}and{{access_token}}variablesImplementation Notes