Kar*_*yan 8 javascript ios firebase swift
我在 iOS 应用中使用 Firebase 身份验证。当用户使用 Firebase 登录我的应用程序然后注销该用户所有其他设备(会话)时,Firebase 中是否有任何方法?我可以使用 Firebase 管理 SDK 做到这一点吗?
haz*_*des 10
当我遇到这个问题时,我使用云功能解决了它请访问此链接了解更多详情https://firebase.google.com/docs/auth/admin/manage-sessions#revoke_refresh_tokens
请执行下列操作;
admin.auth().revokeRefreshTokens(uid)
.then(() => {
return admin.auth().getUser(uid);
})
.then((userRecord) => {
return new Date(userRecord.tokensValidAfterTime).getTime() / 1000;
})
.then((timestamp) => {
//return valid response to ios app to continue the user's login process
});
Run Code Online (Sandbox Code Playgroud)
瞧,用户已注销。我希望这有助于深入了解解决问题
| 归档时间: |
|
| 查看次数: |
8376 次 |
| 最近记录: |