提交 8f5bf13a 编写于 作者: 雪洛's avatar 雪洛

fix: check token response error

上级 1df6a855
...@@ -10,14 +10,16 @@ async function logout () { ...@@ -10,14 +10,16 @@ async function logout () {
uniIdToken, uniIdToken,
deviceId deviceId
} = this.getUniversalClientInfo() } = this.getUniversalClientInfo()
const { const payload = await this.uniIdCommon.checkToken(
uid
} = await this.uniIdCommon.checkToken(
uniIdToken, uniIdToken,
{ {
autoRefresh: false autoRefresh: false
} }
) )
if (payload.errCode) {
throw payload
}
const uid = payload.uid
// 删除token // 删除token
await userCollection.doc(uid).update({ await userCollection.doc(uid).update({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册