cURL
curl --request GET \ --url https://api.example.com/api/v1/users/logged
{ "id": "550e8400-e29b-41d4-a716-446655440000", "userName": "jsmith", "name": "John Smith", "birthDate": "1990-05-15", "bookIds": [ "7c9e6679-7425-40de-944b-e07fc1f90ae7", "9f3e4a56-2c1d-4b8e-8f6d-5a3c2b1d4e5f" ] }
Retrieves details of the currently authenticated user
Authorization: Bearer <your_jwt_token>
curl -X GET "https://api.library.com/api/v1/users/logged" \ -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."