【发布时间】:2016-10-12 15:31:58
【问题描述】:
我目前正在使用 AngularFire 的 $authWithOAuthPopup 方法。注销时,Firebase 会话结束,但 OAuth 仍然存在(根据预期功能)。 link
Link Explaining oAuth is separate workflow from app logout
但是,如果发生这种情况,$authWithOAuthPopup 不允许其他用户在重新登录时输入凭据。
人们是否成功实施了允许其他人登录的解决方案?有人如何允许新用户输入新的登录凭据而不是自动使用旧信息?
当前行为:注销用户 > 点击登录 > 应用使用之前的 FB 会话信息登录。 想要的行为:注销用户 > 点击登录 > 询问用户的 FB 凭据 > 登录。
$scope.logout = function () {
delete $localStorage.storageAuth;
Auth.$unauth();
$state.go('user.signin');
};
谢谢:)
【问题讨论】:
-
您必须让用户退出 Facebook 才能完成此操作。见groups.google.com/d/msg/firebase-talk/nOQW82_c9sQ/cLfb3-3FAAAJ
-
查看我在离子论坛forum.ionicframework.com/t/…为您提供的答案
-
Frank,是不是说所有 Cordova 框架应用程序都不允许用户注销并有新的用户输入?这似乎是一个低于标准的解决方案......你知道我怎么能做到这一点,即使它是一个糟糕的工作流程?
标签: facebook oauth ionic-framework firebase-authentication facebook-authentication