Define user based on JWT attached to request

Hi, is there any way I can get the user information based on the JWT generated on login?

I can get user specific information by sending the User ID in the API endpoint query parameter from the front end.

But it’s much more secure if I just send a “GET” request without any extra user ID and I get a response which is the user info based on the user’s JWT.