Firebase and React JS Authentication [duplicate] - reactjs

This question already has answers here:
Firebase Auth using phone number and password
(4 answers)
Phone Number with Password Authentication using Firebase
(3 answers)
Firebase Login using Mobile number and password (without OTP)
(1 answer)
Firebase login with phone & password
(2 answers)
Closed 2 months ago.
I want to design a web page in which User can register via phone number, OTP Received and password set by user and then login with that phone number and password in future. How can i implement this feature in firebase as backend and React JS as Frontend.
i tried using firebase but there is only login method via email and Password, there is no method for phone number and password login available.

Related

Uncaught (in promise) FirebaseError: Firebase: Error (auth/unauthorized-domain). error [duplicate]

This question already has answers here:
Firebase Auth/unauthorized domain. Domain is not authorized
(8 answers)
Closed 4 months ago.
When I try to open google sign-in in the deployed version of my app I get this error in the console and the popup closes. I have googled a bit about this error and I found that I need to add the domain in my firebase through Authentication -> SignIn method ->Authorized domains and then add the domain I have also tried this but it doesn't work.
and when I try to open the google sign in popup I get this error in the console:
How can I enable google authentication in the deployed app?
Open Firebase
Go to console
Open your project
Go to Authentication
sign-in-method
Add domain
Try it!
In my case it's working

How to validate mobile number in reactjs with help of firebase

How to validate mobile number in reactjs with help of firebase. I just want add mobile number after user login with help of email-password or google sign in pop-up.

Admin and user differentiate in realtime firebase auth react native app [duplicate]

This question already has answers here:
Multiple role authentication Firebase Web
(1 answer)
What is the best way to authenticate two types of users (Student and Driver) in my android app using Firebase [duplicate]
(4 answers)
Firebase Auth signIn distinction
(1 answer)
Closed 1 year ago.
I am Developing an react native app for parent and tutor in which that I am using email and password for signing in and signup used, so I want to differentiate the user and parent.
It is done with realtime firebase.
How it possible in Firebase? Please suggest me to resolve my issues.

how to integrate google 2 factor / 2 step authentication in react app

I want to add google 2fa authentication for my react app. How can I
generate QR code for my app?
Will this be a static or a dynamic code?
Where do I need to send the secret (6 digit / 8 digit) code for
authentication once the user copies it from the google-authenticator
mobile app.
what google-api need to be enabled for this app in the
console.google.developer.com, like we enable G+ api for google sign-in?
need help!

How do I can differentiate the customer login and admin login in the firebase?

I am Developing an web app which is based upon React and firebase in that I am using email and password for signing in and signup, so I want to differentiate the admin and customer.
How it possible in Firebase? Please suggest me to resolve my issues.

Resources