root 或 admin 角色调用。 该接口会按当前 token policy 为目标用户生成一个标准 session token, 返回的 token 可直接用于后续 API 调用。Authorization: Bearer ********************{
"userId": 2
}curl --location --request POST '/yiaskAuth:issueUserToken' \
--header 'X-SPACES: default' \
--header 'X-SPACES: {{space}}' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"userId": 2
}'{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"jti": "8ef7dc1d-4ddb-4c55-b6f5-0dd6dc28b6b4",
"expiresAt": "2026-03-27T08:00:00.000Z",
"user": {
"id": 2,
"username": "alice",
"email": "alice@example.com",
"nickname": "Alice"
}
}