GET
/api/authentication/fetchuserinfo
curl \
--request GET 'http://localhost:xxxx/api/authentication/fetchuserinfo' \
--cookie "jwt=$API_KEY"
Response examples (200)
{
"user": {
"id": "60d0fe4f5311236168a109ca",
"email": "用户@example.com",
"configuredProfile": true,
"firstName": "张",
"lastName": "三",
"avatar": "https://example.com/avatar.jpg",
"theme": 1
}
}
Response examples (401)
您未通过身份验证
Response examples (403)
无效的令牌
Response examples (404)
未找到用户
Response examples (500)
服务器内部错误