https://github.com/boudlal/react-native-firebase-phone-auth
An example of using firebase phone auth in react-native and solving captcha issue
https://github.com/boudlal/react-native-firebase-phone-auth
captcha firebase firebase-auth firebase-phone firebase-phone-verification react-native react-native-firebase react-native-firebase-auth
Last synced: 11 months ago
JSON representation
An example of using firebase phone auth in react-native and solving captcha issue
- Host: GitHub
- URL: https://github.com/boudlal/react-native-firebase-phone-auth
- Owner: boudlal
- Created: 2019-04-30T18:23:30.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-30T18:49:44.000Z (about 7 years ago)
- Last Synced: 2025-04-19T17:07:50.421Z (about 1 year ago)
- Topics: captcha, firebase, firebase-auth, firebase-phone, firebase-phone-verification, react-native, react-native-firebase, react-native-firebase-auth
- Language: JavaScript
- Homepage:
- Size: 237 KB
- Stars: 12
- Watchers: 1
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-native-firebase-phone-auth
A solution for using firebase phone auth in react-native
# How It Works
As you know firebase phone-auth required a valid captcha as the second argument in its function signInWithPhoneNumber(phone_number, captchaVerifier). so in that example we tried to verify captcha in a WebView then passed captcha token to our app and build a fake captchaVerifier.
# Installation guide
- ``git clone https://github.com/boudlal/react-native-firebase-phone-auth.git``
- ``yarn install`` or ``npm Install``
- Add your firebase config into App.js and Captcha.html
- Deploy Captcha.html in a server.
- Add your Captcha.html domain in the authorized domain section in the firebase console
- Run ``react-native run-android`` or ``react-native run-ios`` and enjoy.