keppelen / react-facebook-login

A Component React for Facebook Login
1.18k stars 406 forks source link

checkLoginAfterRefresh should check for isMobile #342

Open ieow opened 2 years ago

ieow commented 2 years ago
  checkLoginAfterRefresh = (response) => {
    if (response.status === 'connected') {
      this.checkLoginState(response);
    } else {
      window.FB.login(loginResponse => this.checkLoginState(loginResponse), true);
    }
  };

if response.status is not connected, it is trying to call FB.login without checking for mobile. (isMobile) This is causing unexpected popup on mobile