跳转到主要内容
GET
/
auth
/
user
cURL
curl --request GET \
  --url http://127.0.0.1:3000/api/auth/user \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "name": "<string>",
  "avatar": "<string>",
  "email": "[email protected]"
}

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

响应

200 - application/json

Successfully retrieved user information

id
string
必填
name
string
必填
avatar
string | null
email
string<email>
Last modified on December 10, 2025