All Projects → thareekanvar → react-native-firebase-phone-auth

thareekanvar / react-native-firebase-phone-auth

Licence: other
React native firebase Phone number Authentication working example :)

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to react-native-firebase-phone-auth

react-native-animated-screen
React Native Animated Screens made easy
Stars: ✭ 28 (-44%)
Mutual labels:  reactnative
react-native-lewin-screen-capture
获取系统截屏事件 react native
Stars: ✭ 20 (-60%)
Mutual labels:  reactnative
coronadev
Aplicativo para consultar a situação global do COVID-19
Stars: ✭ 44 (-12%)
Mutual labels:  reactnative
reactXstarter
React + Redux + React Native Starter Kit with reusable business logic. Sample TODO app built in.
Stars: ✭ 42 (-16%)
Mutual labels:  reactnative
react-native-bottom-bar
Fully customizable BottomBar with unique design shape for React Native.
Stars: ✭ 74 (+48%)
Mutual labels:  reactnative
solar-weather
React Native Weather App w. Realm, Redux, ReasonReact & Forecast.io
Stars: ✭ 13 (-74%)
Mutual labels:  reactnative
Galio
Galio is a beautifully designed, Free and Open Source React Native Framework
Stars: ✭ 2,772 (+5444%)
Mutual labels:  reactnative
react-native-date-ranges
idea from react-native-dates >
Stars: ✭ 68 (+36%)
Mutual labels:  reactnative
hackerweb-native-2
HackerWeb 2: A read-only Hacker News client.
Stars: ✭ 51 (+2%)
Mutual labels:  reactnative
prism
Minimal, idiomatic style management for React Native
Stars: ✭ 19 (-62%)
Mutual labels:  reactnative
photos
"Fx Fotos" is an opensource gallery app in react native with the same smoothness and features of Google Photos and Apple Photos. It is backend gnostic and connects to decentralized backends like "box", "Dfinity", "Filecoin" and "Crust".
Stars: ✭ 620 (+1140%)
Mutual labels:  reactnative
RNAndroidPullToRefresh
React Native 封装基于 Ultra-Pull-To-Refresh 的下拉刷新控件
Stars: ✭ 17 (-66%)
Mutual labels:  reactnative
clj-rn
A utility for building ClojureScript-based React Native apps
Stars: ✭ 56 (+12%)
Mutual labels:  reactnative
finclip-react-native-demo
FinClip RN 运行环境,让小程序在 RN 应用中无缝运行 / ReactNative DEMO for FinClip
Stars: ✭ 36 (-28%)
Mutual labels:  reactnative
guchub
🎓 Elegantly manage your GUC academic life
Stars: ✭ 15 (-70%)
Mutual labels:  reactnative
React Native Opencv Tutorial
👩‍🏫Fully working example of the OpenCV library used together with React Native
Stars: ✭ 244 (+388%)
Mutual labels:  reactnative
React-Native-top-navbar
This reactnative package provides custom header component for mobile apps. also providing utility method to change statusbar color.
Stars: ✭ 27 (-46%)
Mutual labels:  reactnative
react-native-emoji-input
A fully-featured emoji keyboard ⌨️ for React Native ⚛️
Stars: ✭ 67 (+34%)
Mutual labels:  reactnative
atomic-state
Atomic State is a state management library for React
Stars: ✭ 15 (-70%)
Mutual labels:  reactnative
react-native-travel-app
An travel itinerary creation and management application built in ReactNative and GraphQL
Stars: ✭ 20 (-60%)
Mutual labels:  reactnative

react-native-firebase-phone-auth

This is an example of firebase phone auth in react native application. i searched in google lot of areas then i found this example this is working good.This method not fully belongs to me..i will post a video also here....

Getting Started

1.We have special static "Captcha" web page, hosted on domain, that authorized on our Firebase project. It simply shows firebase.auth.RecaptchaVerifier. User resolves captcha and it gives token string from response of callback.

2.On application login screen we show WebBrowser with "Captcha" page and listening url change event by Linking methods. On new url, we extract token string from it.

3.Then we create fake firebase.auth.ApplicationVerifier object with token and pass it to firebase.auth().signInWithPhoneNumber (with phone number). SMS code will be sent.

I wrote tested simplest code below. You can directly "copy-paste" it. Just add firebase config (this config must be same for both) and set correct "Captcha" page url. Don't forget that phone must be entered in international format. In this code "Captcha" page hosted on firebase hosting, so it automatically initializing by including init.js and authorized by default.

Features

  • Expo TabNavigated Example
  • Full Authenticated
  • Authentication Handled AppNavigator
  • FirebasePhone Authentication Full

How its Works ?

  • First You need a "captcha.html" page which i uploaded ( Me Hosted in My Firebase )
  • We Take The Token From this html page and send to the app .
  • fake firebase auth will work with that given token
  • SMS code will send to Our Given Phone Number
Go to " ./src/domain/phoneAuthentication " Edit captchaUrl with Your Hosted URL
Go to " App.js " Change Your Firebase Config
Here You Must Enter The Number is in international format eg: if indian Number then type " +91xxxxxxxxxx " .
How To Install ?
git clone https://github.com/thareekanvar/react-native-firebase-phone-auth.git

Contributors

We are welcome more contributions more authentications..

Alex Andrade ( Main part of New update )

Example

Imgur Image

Here Uploading The App.js Content and The Html Page .

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].