I need to develop an API endpoint that, given a user model, returns the current longitude and latitude of the user. This API is intended for use in a project where you want to display the user’s location on a map. The endpoint should take a user ID or similar identifier as input and respond with the geographical coordinates of the user. The location data should be fetched from a backend system where it is regularly updated. The API should be designed with proper security measures to ensure only authorized access to user location data.