Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(auth, android): avoid crash on react-native < 0.63
At minimum phone OTP auth and perhaps other scenarios may crash on very old react-native, because old react-native used to throw an exception if a map didn't contain a key, whereas newer react-native just returns null Newer code here related to multi-factor auth relied on that returns-null behavior and did not handle the case where an exception may be thrown if a key didn't exist Avoid this exception+crash by explicitly checking for our desired key prior to getting its value
- Loading branch information
3fee0d6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
react-native-firebase – ./
react-native-firebase.vercel.app
rnfirebase.io
react-native-firebase-invertase.vercel.app
react-native-firebase-git-main-invertase.vercel.app