Member Login
Endpoint Details
- URL:
/client/member/login - Method:
POST - Description: Members log in using their username and password. Due to basic security checks on the platform, you must obtain a
baseTokenbefore calling this endpoint.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
baseToken | String | Yes | Credential obtained from the basic authentication endpoint |
username | String | Yes | Member login account |
password | String | Yes | Member login password (plain text, encrypted and verified by the backend) |
Request Example (JSON)
json
{
"baseToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpX...",
"username": "testuser01",
"password": "my_password123"
}Response Parameters
| Name | Type | Description |
|---|---|---|
code | Number | Status code, 0 indicates success |
msg | String | Prompt message |
data | Object | Response data containing login details |
data.token | String | Exclusive Member Token, subsequent business requests involving the member must carry this Token |
data.user | Object | Basic member information |
Response Example
json
{
"code": 0,
"msg": "success",
"data": {
"user": {
"id": "xxxx-xxxx-xxxx-xxxx",
"username": "testuser01",
"nickname": "Test User 01",
"avatar": "..."
},
"token": "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9...",
"expiresAt": 1718000000000
}
}