登入登出
Last updated
Was this helpful?
Last updated
Was this helpful?
请参考章节
接口说明:
BaaS.auth.loginWithThirdPartyAuthData(authData, options)
参数说明
authData 为 Object 类型,字段属性如下:
authToken
String
是
-
第三方 OAuth 登录后返回的 token
username
String
否
-
用户名,apple-native
登录时必填
options 为 Object 类型,字段属性如下:
provider
String
是
-
第三方平台,目前支持 wechat-native
(微信第三方登录)、apple-native
(Signin with Apple)
createUser
Boolean
否
true
是否创建用户
syncUserProfile
String
否
'setnx'
返回结果
Promise<>
请求示例
接口说明:
UserRecord.linkThirdPartyWithAuthData(authData, options)
参数说明
authData 为 Object 类型,字段属性如下:
authToken
String
是
-
第三方 OAuth 登录后返回的 token
username
String
否
-
用户名,apple-native
登录时必填
options 为 Object 类型,字段属性如下:
provider
String
是
-
第三方平台,目前支持 wechat
(微信登录)、apple
(Apple 登录)
syncUserProfile
String
否
'setnx'
请求示例
是否,可选值为 overwrite、setnx、false
err 对象结构请参考
是否,可选值为 overwrite、setnx、false
err 对象结构请参考