登入登出
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
BaaS.auth.loginWithThirdPartyAuthData({
authToken: '****',
}, {
provider: 'wechat',
createUser: true,
syncUserProfile: 'overwrite',
})
.then(user => {
// 登录成功
})
.catch(err => {
// 登录失败
})BaaS.auth.getCurrentUser().then(user => {
return user.linkThirdPartyWithAuthData({
authToken: '****',
}, {
provider: 'wechat',
syncUserProfile: 'overwrite',
})
})
.then(() => {
// 关联成功
})
.catch(err => {
// 关联失败
})