如何确保Facebook不会自动登录用户?

时间:2019-10-22 14:40:53

标签: firebase firebase-authentication facebook-javascript-sdk

我正在使用Facebook firebase登录逻辑将用户登录到我的网站。由于用户在facebook.com上进行了会话,因此Facebook通常会自动登录该用户。我该如何预防?

这是我的代码

loadFB () {
    window.FB.init({
        appId      : this.props.appId,
        status     : true,
        xfbml      : true,
        version    : 'v2.6'
    });
    window.FB.Event.subscribe('auth.authResponseChange', this.checkLoginState.bind(this));
}

checkLoginState (event) {
    this.props.handleResponse(event);
}

0 个答案:

没有答案