Git Product home page Git Product logo

react-native-firebase-phone-auth's Introduction

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.

react-native-firebase-phone-auth's People

Contributors

boudlal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

react-native-firebase-phone-auth's Issues

I have issues in using this Repository.

I have tried to use your good idea in my project.
I used your captcha html in my hosted URL.
After I input phone number on TextInput, I clicked Continue.
WebView is presented my hosted Captcha URL.
As soon as I verify "I am not a Robot", I get this error
"com.facebook.react.bridge.ReadableNativeMap cannot be cast to java.lang.Boolean"

How can I resolve this error?

Modal with captcha returns white screen.

It was working before about 3 month ago and I implemented it in my project. Now when all is about to finished I tried it again and Modal with captcha return white screen. Did they change something in Firebase?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.