# getThirdAuthInfo

-获取第三方登录鉴权信息

# 调用方式

getThirdAuthInfo(params = {})
1

返回 Promise,使用 then/catch 或 await 处理结果。

# 请求参数

Prop Type Required Default Description
param Object Y {third_type:} 79Apple ID 32Facebook 99Google 89Twitter 69Zalo
callback Function N - 成功回调,参数为 (skillId, res)

# 接口调用示例

const params = { third_type: '99', callback: (skillId, res) => { console.log(skillId, res) } }

this.$bridge.getThirdAuthInfo(params)
  .then(res => {
    console.log(res)
  })
  .catch(error => {
    console.error(error)
  })
1
2
3
4
5
6
7
8
9

# 返回参数

Prop Type Required Default Description
data Object Y {thirdUid:--,tAccessToken:--,thirdUserName:-} —

# 注意事项

可在参数对象中传 callback。成功结果 code 为 0 时调用 callback(skillId, res);callback 不会传给原生。无论是否设置 callback,本方法都返回 Promise。