-
Notifications
You must be signed in to change notification settings - Fork 987
Description
Operating System
17.0
Browser Version
Expo
Firebase SDK Version
10.12.5
Firebase SDK Product:
Auth
Describe your project's tooling
React Native, Expo and Firebase auth
"@react-native-firebase/app": "^20.3.0",
"@react-native-firebase/auth": "^20.3.0",
"@react-navigation/native": "^6.1.18",
"@react-navigation/stack": "^6.4.1",
"expo": "~51.0.26",
"expo-location": "^17.0.1",
"expo-notifications": "^0.28.15",
"expo-status-bar": "~1.12.1",
"firebase": "^10.12.5",
"react": "18.2.0",
"react-native": "0.74.5",
"react-native-maps": "1.14.0",
"react-native-safe-area-context": "4.10.5",
"react-native-screens": "3.31.1"
Describe the problem
I want to authenticate using phone number OTP only for my react native app I created last week. I'm using latest versions of React Native, Expo and Firebase/auth.
I'm following this document: https://firebase.google.com/docs/auth/web/phone-auth?hl=en&authuser=0&_gl=1*bgntt3*_ga*MTM4ODE1MDc1My4xNzIzMDM5OTgz*_ga_CW55HF8NVT*MTcyMzQyNDc0MC4xMC4xLjE3MjM0MjUwNzIuMzIuMC4w
I've tried using window.recaptchaVerifier and RecaptchaVerifier from firebase/auth but its not supporting in iOS. Error is Can't find 'verify' of undefined.
Steps and code to reproduce issue
const confirmationResult = signInWithPhoneNumber(auth, phoneNumber, applicationVerifier);
applicationVerifier as window.recaptchaVerifier and RecaptchaVerifier from firebase/auth are both resulting error that "Can't find 'verify' of undefined.
What is the best value of applicationVerifier for React Native that can support in both ios and android simulator as well as in real devices. This is mobile only app.