facebookarchive / react-native-fbsdk

A React Native wrapper around the Facebook SDKs for Android and iOS. Provides access to Facebook login, sharing, graph requests, app events etc.
https://developers.facebook.com/docs/react-native
Other
2.99k stars 909 forks source link

Use two factor authentication login facebook on Android, go to background state to get code then go back, fbsdk closed. #820

Open ducdh-fabbi opened 3 years ago

ducdh-fabbi commented 3 years ago

🐛 Bug Report

When I use two factor authentication to login facebook on Android, I must go background state to get code, then open app again, fbsdk is closed so I have to open it quickly so that the code doesn't expire.

To Reproduce

  1. Enter button login facebook
  2. Enter username/password -> then be asked for a verification code.
  3. Go to background state to get code from Google Authenticator.
  4. Go back to App -> fbsdk closed.

Expected Behavior

  1. Go back to App -> fbsdk not close so I can easily fill verification code.

Environment

react-native 0.63.3 react-native-fbsdk 3.0.0