[🐛] Bug Report Title - Phone verification on Android returns empty error #8463
Labels
blocked: customer-response
platform: android
plugin: authentication
Firebase Authentication
type: bug
New bug report
Issue
Getting empty error while initiating phone verification.
Here's the code snippet
import auth from '@react-native-firebase/auth';
await auth()
.verifyPhoneNumber(phoneNumber)
.on('state_changed', (phoneAuthSnapshot) => {
switch (phoneAuthSnapshot.state) {
case auth.PhoneAuthState.CODE_SENT:
update({ verificationId: phoneAuthSnapshot.verificationId });
router.navigate('/auth/phone-verification');
break;
case auth.PhoneAuthState.ERROR:
logger.error(phoneAuthSnapshot);
break;
}
});
This line
logger.error(phoneAuthSnapshot);
outputs{"code":null,"error":{},"state":"error"}
It's hard to understand what's wrong from the output. Could you, please, help?
Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:^21.0.0
Firebase
module(s) you're using that has the issue:e.g. Instance ID
TypeScript
?Y
&~5.3.3
React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: