---
title: "使用uid登陆"
method: POST
path: "/web/auth/loginByUid"
tags: ["Auth"]
---

# 使用uid登陆

`POST /web/auth/loginByUid`

响应契约：AuthResult。

无需登录。 无需请求签名。 返回明文响应。

认证要求：无需登录。

签名要求：无需请求签名。

响应处理：返回明文响应。

## Headers

- `lang` string — 语言代码，例如 en、zh、es。
- `device_number` string — 设备唯一标识。
- `app_version` string — 客户端版本号。

## Request body

- object
  - `uid` string
  - `login_uid` string

## Response `200`

请求成功

- object
  - `code` integer, required
  - `msg` string, required
  - `data` AuthResult, required — 登录、注册和刷新 token 的返回结果。
    - `token` string — 登录 token。
    - `uid` integer — 用户 ID。
    - `account_type` integer — 账号类型。
    - `country_code` string — 国家码。
    - `openid` string — 三方账号 openid。
    - `name` string — 昵称或姓名。
    - `avatar` string — 头像。
    - `gender` integer — 性别。
    - `email` string — 邮箱。
    - `first_name` string — 名。
    - `last_name` string — 姓。
    - `refresh_token` string — 刷新 token。
    - `url` string — 登录跳转地址。
    - `code` string — 设备登录码。
    - `expire_at` integer — 过期时间戳。
    - `lang` string — 语言代码。
    - `password` string — 注册或重置后的明文密码。
  - `info` object, required
  - `is_encrypt` 0 | 1, required
  - `request_id` string, required
  - `response_time` integer, required
  - `original_data` object

## Other responses

- `400` — 请求失败

---

[API](https://skmtc.dev/flextv/apis/flextv-api.md) · [All operations](https://skmtc.dev/flextv/apis/flextv-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/flextv/flextv-api/revisions/84f55eb57fd0/schema)
