Get Current User Profile
GET/auth/me
Returns the complete profile information of the authenticated user. Typical Flow:
- The client sends a request with a JWT token in the Authorization header
- The server validates the token and extracts the user ID
- Queries the updated user data in the database
- Returns the complete profile information Usage Examples:
- Load user information upon application startup
- Display profile details on the interface
- Validate current user's permissions and role
- Synchronize data after updates Information Returned:
- Personal data (name, last name, email)
- Associated company information
- User role and permissions
- Active subscription type
- Account creation date Important Notes:
- Requires a valid JWT token in the header:
Authorization: Bearer {token} - The token must not be expired (valid for 24 hours)
- Returns the most current data from the database
- Does not include password or sensitive information
Responses
- 200
- 401
User profile successfully retrieved
Unauthorized - Invalid or missing authentication