GET /api/auth/user
Retrieves the current authenticated user’s information based on the provided access token.Authentication
Required. Include the access token in the Authorization header.Request Headers
Bearer token for authenticationExample:
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...Request Body
No request body required.Response Fields
Example Request
Example Response
Error Responses
401 Unauthorized
Missing or invalid authentication token:500 Internal Server Error
This endpoint is useful for verifying that an access token is still valid and for retrieving the current user’s profile information.