GET /auth/me
Return the current authenticated user's ID, username, email, phone number, and account status. Supports parsing user identity directly from JWT. Reference: RFC 7519 (JWT), OWASP ASVS V2.1.
Authentication `bearerAuth` application/json
Referenced Schemas
dto.UserInfo
User basic information
| Field | Type | Required | Example | Constraints | Description |
created_at |
string |
No |
2026-01-15T10:30:00Z |
|
Account creation time |
email |
string |
No |
john@example.com |
|
Email |
id |
string |
No |
usr_abc123 |
|
User ID |
must_change_password |
boolean |
No |
False |
|
Password must be changed |
password_expires_in |
integer |
No |
30 |
|
Days until password expires |
password_warning |
string |
No |
expiring |
|
Password warning: expiring/expired_grace/expired |
phone |
string |
No |
13800138000 |
|
Phone |
status |
string |
No |
active |
|
Status |
username |
string |
No |
john.doe |
|
Username |
dto.UserInfoResponseWrapper
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.UserInfo |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|