You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LOG [Firebase] Initializing in mode: DEVELOPMENT
LOG [Firebase] Setting up test mode for phone authentication
LOG [PhoneAuth] Starting phone verification for: +15555555555
LOG [PhoneAuth] Using test verification code: 123456
LOG [PhoneVerification] Component mounted
LOG [PhoneVerification] Code input completed: 111111
LOG [PhoneVerification] Starting verification with code length: 6
LOG [PhoneVerification] Attempting to verify code: 111111
LOG [PhoneVerification] Calling verifyCode
LOG [PhoneAuth] Confirming code: 111111
LOG [PhoneAuth] Test mode: any 6-digit code will work
ERROR [PhoneAuth] Code verification error: [Error: [auth/unknown] An internal error has occurred. [ Error code:47 ]]
ERROR [PhoneVerification] Verification error: [Error: [auth/unknown] An internal error has occurred. [ Error code:47 ]]
LOG [PhoneVerification] Verification attempt completed
if (__DEV__) {
console.log("[Firebase] Setting up test mode for phone authentication");
auth().settings.appVerificationDisabledForTesting = true;
auth().settings.forceRecaptchaFlowForTesting = true;
}
It detects incorrect codes
LOG [PhoneVerification] Code input completed: 111112
LOG [PhoneVerification] Starting verification with code length: 6
LOG [PhoneVerification] Attempting to verify code: 111112
LOG [PhoneVerification] Calling verifyCode
LOG [PhoneAuth] Confirming code: 111112
LOG [PhoneAuth] Test mode: any 6-digit code will work
ERROR [PhoneAuth] Code verification error: [Error: [auth/invalid-verification-code] The verification code from SMS/TOTP is invalid. Please check and enter the correct verification code again.]
ERROR [PhoneVerification] Verification error: [Error: [auth/invalid-verification-code] The verification code from SMS/TOTP is invalid. Please check and enter the correct verification code again.]
LOG [PhoneVerification] Verification attempt completed
My SHA is in firebase.
My project uses expo.
App.json
{
"expo": {
"name": "appname",
"slug": "appname",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/images/icon.png",
"scheme": "appname",
"userInterfaceStyle": "light",
"newArchEnabled": false,
"ios": {
"supportsTablet": true,
"infoPlist": {
"NSCalendarsUsageDescription": "We need access to your calendar to create reminders for your pickup/delivery times.",
"NSRemindersUsageDescription": "We need access to your reminders to create reminders for your pickup/delivery times."
},
"bundleIdentifier": "com.appname.appname",
"googleServicesFile": "./GoogleService-Info.plist"
},
"android": {
"permissions": [
"READ_CALENDAR",
"WRITE_CALENDAR",
"android.permission.ACCESS_COARSE_LOCATION",
"android.permission.ACCESS_FINE_LOCATION",
"android.permission.FOREGROUND_SERVICE",
"android.permission.FOREGROUND_SERVICE_LOCATION",
"android.permission.READ_CALENDAR",
"android.permission.WRITE_CALENDAR"
],
"googleServicesFile": "./google-services.json",
"config": {
"googleMaps": {
"apiKey": "YOUR_API_KEY"
}
},
"adaptiveIcon": {
"foregroundImage": "./assets/images/adaptive-icon.png",
"backgroundColor": "#ffffff"
},
"package": "com.appname.appname"
},
"web": {
"favicon": "./assets/images/favicon.png",
"output": "single"
},
"plugins": [
[
"expo-location",
{
"locationWhenInUsePermission": "Allow $(PRODUCT_NAME) to use your location when you're using the app.",
"isAndroidForegroundServiceEnabled": true
}
],
"expo-router",
[
"expo-splash-screen",
{
"image": "./assets/splash.png",
"imageWidth": 200,
"resizeMode": "contain",
"backgroundColor": "#ffffff"
}
],
[
"expo-font",
{
"fonts": [
"./assets/fonts/DMSerifDisplay-Regular.ttf",
"./assets/fonts/Engagement-Regular.ttf",
"./assets/fonts/Inter-Bold.ttf",
"./assets/fonts/Inter-Regular.ttf",
"./assets/fonts/Lexend-Bold.ttf",
"./assets/fonts/Lexend-ExtraBold.ttf",
"./assets/fonts/Lexend-ExtraLight.ttf",
"./assets/fonts/Lexend-Light.ttf",
"./assets/fonts/Lexend-Medium.ttf",
"./assets/fonts/Lexend-Regular.ttf",
"./assets/fonts/Lexend-SemiBold.ttf",
"./assets/fonts/Outfit-Light.ttf",
"./assets/fonts/Outfit-Regular.ttf",
"./assets/fonts/Poppins-Regular.ttf",
"./assets/fonts/SpaceMono-Regular.ttf",
"./assets/fonts/StyleScript-Regular.ttf"
]
}
],
[
"expo-calendar",
{
"calendarPermission": "Allow $(PRODUCT_NAME) to access your calendar"
}
],
"@react-native-firebase/app",
"@react-native-firebase/crashlytics",
"@react-native-firebase/auth"
],
"experiments": {
"typedRoutes": true
},
"extra": {
"router": {
"origin": false
},
"eas": {
"projectId": "your-project-id"
}
},
"owner": "appname"
}
}
Everything I see online points to some sort of google cloud permission issue / project setup issue - zero things point to anything this module (in react-native-firebase) could do anything about. I'd approach official firebase support.
@yehya 555 area code is not supported with Firebase, this is not documented anywhere that I have located, but have determined this through personal testing. You need to use a valid area code. ie. 1-281-555-1234.
Issue
Phone auth not working with test numbers
+1 555 555 5555
Code: 111111
I use
to get my app SHA, I then put this in firebase & downloaded the GoogleServices file. This is placed in my root directory.
I then run it on an emulator.
The error I get is
It detects incorrect codes
My SHA is in firebase.
My project uses expo.
App.json
Project Files
Javascript
Click To Expand
package.json
:firebase.json
for react-native-firebase v6:# N/A
iOS
Click To Expand
ios/Podfile
:# N/A
AppDelegate.m
:// N/A
Android
Click To Expand
Have you converted to AndroidX?
android/gradle.settings
jetifier=true
for Android compatibility?jetifier
for react-native compatibility?android/build.gradle
:// N/A
android/app/build.gradle
:// N/A
android/settings.gradle
:// N/A
MainApplication.java
:// N/A
AndroidManifest.xml
:<!-- N/A -->
Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:e.g. 5.4.3
Firebase
module(s) you're using that has the issue:e.g. Instance ID
TypeScript
?Y
&in package.json
React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: