Return details of the current user in response from API, when a user is logged in.