GET /api/auth/user
Retrieves the profile information for the currently authenticated user.Authentication
Required. This endpoint requires authentication via theauthenticate middleware.
Include authentication token in the request headers.
Request Parameters
No parameters required.Response
Success Response (200 OK)
Error Responses
401 Unauthorized - No Authentication Token
401 Unauthorized - Invalid Token
cURL Example
Notes
- Requires valid authentication token in request headers
- Returns the user object attached to the request by the authentication middleware
- Rate limiting is applied to this endpoint
- Useful for verifying authentication status and retrieving current user data