A AuthMS API Wiki API Reference iam.tianv.com →

GET /auth/me

返回当前认证用户的ID、用户名、邮箱、手机号及账户状态,支持从JWT直接解析用户身份。参考:RFC 7519 (JWT)、OWASP ASVS V2.1。

身份认证 `bearerAuth` application/json

Responses

StatusDescriptionSchema
200当前用户的详细身份信息dto.UserInfoResponseWrapper
401未认证或令牌无效gitee_com_linmes_authms_base_dto.SimpleResponse
404用户不存在gitee_com_linmes_authms_base_dto.SimpleResponse
500服务器内部错误gitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.UserInfo

用户基本信息

FieldTypeRequiredExampleConstraintsDescription
created_at string No Account creation time
email string No Email
id string No User ID
must_change_password boolean No Password must be changed
password_expires_in integer No Days until password expires
password_warning string No Password warning: expiring/expired_grace/expired
phone string No Phone
status string No Status
username string No Username

dto.UserInfoResponseWrapper

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.UserInfo No
message string No
timestamp string No

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No