我正在使用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);
}