类型定义
渠道信息说明
Apple
| 参数 | 类型 | 描述 | 备注 |
|---|---|---|---|
| code | string | 可用于获取访问令牌的授权码 | 必填 |
| user_name | string | 渠道返回用户名 | 选填 |
| app_id | string | 苹果渠道的 app ID,多渠道包时必填 | 选填 |
Discord
| 参数 | 类型 | 描述 | 备注 |
|---|---|---|---|
| access_token | string | 网页用户的访问令牌 | 必填 |
| refresh_token | string | 刷新令牌 | 必填 |
| expires_in | uint | 访问令牌到期前的时间量 单位:秒 | 必填 |
| redirect_uri | string | 重定向 URI | 选填 |
Epic
| 参数 | 类型 | 描述 | 备注 |
|---|---|---|---|
| openid | string | Player Network SDK 用户唯一标识,为 thirdAuthorize 接口返回参数 account_id | 必填 |
| nickname | string | 用于展示的用户昵称 | 选填 |
| access_token | string | 网页用户的访问令牌 | 必填 |
| refresh_token | string | 刷新令牌 | 选填 |
| expires_in | uint | 访问令牌到期前的时间量 单位:秒 | 选填 |
| refresh_expires_in | uint | 刷新令牌到期前的时间量 单位:秒 | 选填 |
Facebook
| 参数 | 类型 | 描述 | 备注 |
|---|---|---|---|
| access_token | string | 网页用户的访问令牌 | 必填 |
Facebook Instant Game
| 参数 | 类型 | 描述 | 备注 |
|---|---|---|---|
| signature | string | Facebook Instant Game 的签名 | 必填 |
Garena
| 参数 | 类型 | 描述 | 备注 |
|---|---|---|---|
| token | string | Garena 网页用户的访问令牌,为 thirdAuthorize 接口返回参数 token | Player Network SDK 授权必填 |
| garena_sns_openid | string | Garena OpenID,为 thirdAuthorize 接口返回参数 garena_sns_openid | garena 绑定必填 |
| garena_sns_token | string | Garena token,为 thirdAuthorize 接口返回参数 garena_sns_token | garena 绑定必填 |
Google
| 参数 | 类型 | 描述 | 备注 |
|---|---|---|---|
| code | string | 可用于获取访问令牌的授权码 | 必填 |
Kakao v3
| 参数 | 类型 | 描述 | 备注 |
|---|---|---|---|
| zat | string | Kakao v3 访问令牌 | 必填 |
| picture | string | 头像 | 选填 |
| playerid | string | 玩家 ID | 选填 |
| username | string | 用户标识 | 选填 |
LINE
| 参数 | 类型 | 描述 | 备注 |
|---|---|---|---|
| access_token | string | 网页用户的访问令牌 | 必填 |
| expires_in | int64 | 访问令牌到期前的时间量 单位:秒 | 选填 |
PlayStation 5
| 参数 | 类型 | 描述 | 备注 |
|---|---|---|---|
| code | string | 网页用户的访问令牌 | 必填 |
| redirect_uri | string | 重定向 URI | 选填 |
Steam
| 参数 | 类型 | 描述 | 备注 |
|---|---|---|---|
| openid.ns | string | Steam 网页登录协议字段 | 必填 |
| openid.mode | string | Steam 网页登录协议字段 | 必填 |
| openid.op_endpoint | string | Steam 网页登录协议字段 | 必填 |
| openid.claimed_id | string | Steam 网页登录协议字段 | 必填 |
| openid.identity | string | Steam 网页登录协议字段 | 必填 |
| openid.return_to | string | Steam 网页登录协议字段 | 必填 |
| openid.response_nonce | string | Steam 网页登录协议字段 | 必填 |
| openid.assoc_handle | string | Steam 网页登录协议字段 | 必填 |
| openid.signed | string | Steam 网页登录协议字段 | 必填 |
| openid.sig | string | Steam 网页登录协议字段 | 必填 |
Twitch
| 参数 | 类型 | 描述 | 备注 |
|---|---|---|---|
| access_token | string | 网页用户的访问令牌 | 必填 |
| refresh_token | string | 刷新令牌 | 必填 |
| expires_in | uint | 访问令牌到期前的时间量 单位:秒 | 必填 |
| token_type | string | 访问令牌类型 例如 "bearer" | 必填 |
X
| 参数 | 类型 | 描述 | 备注 |
|---|---|---|---|
| oauth_token | string | 网页用户的访问令牌,为 thirdAuthorize 接口返回参数 access_token | 必填 |
| oauth_secret | string | 网页用户的访问密钥,为 thirdAuthorize 接口返回参数 secret | 必填 |
VK
| 参数 | 类型 | 描述 | 备注 |
|---|---|---|---|
| token | string | 网页用户的访问令牌,为 thirdAuthorize 接口返回参数 access_token | 必填 |
Xbox
| 参数 | 类型 | 描述 | 备注 |
|---|---|---|---|
| auth_token | string | 网页用户的访问令牌,为 thirdAuthorize 接口返回参数 auth_token | 必填 |
| xuid | string | 网页用户的 Xbox UID,为 thirdAuthorize 接口返回参数 xuid | 必填 |
QQ
| 参数 | 类型 | 描述 | 备注 |
|---|---|---|---|
| access_token | string | 网页用户的访问令牌,为 thirdAuthorize 接口返回参数 access_token | 必填 |
| refresh_token | string | 网页用户的 refresh token,为 thirdAuthorize 接口返回参数 refresh_token | 必填 |
| expires_in | string | 网页用户的信息过期时间,为 thirdAuthorize 接口返回参数 expires_in | 必填 |
| openid | string | 网页用户的 QQ openid thirdAuthorize 接口返回参数 openid | 必填 |
Wechat
| 参数 | 类型 | 描述 | 备注 |
|---|---|---|---|
| code | string | 网页用户的访问令牌,为 thirdAuthorize 接口返回参数 code | 必填 |
LI PASS
| 参数 | 类型 | 描述 | 备注 |
|---|---|---|---|
| token | string | 自建账号,用户授权令牌 | 必填 |
| openid | string | 自建账号的 UID | 必填 |
| account_plat_type | number | 用于区分不同自建账号平台的账号平台类型 Player Network 控制台分配的 ACCOUNT_PLAT_TYPE,LI PASS 为 131 | 必填 |
| account | string | 用户账号,例如邮箱 | 必填 |