Firebase phone auth without code verification nor recaptcha - javascript

I am new in firebase and I am trying to integrate my WordPress authentication with firebase auth. my aim is: "when User registers on wordpress, to create a user on firebase with phoneNumber authentication for mobile app", is there a way to do firebase phone number auth through web, without Recaptcha verifier nor SMS code verification.
I created firebase account with email and password, and tried to update the User phoneNumber but without success (tried updateProfile and updatePhoneNumber)
I welcome any other idea or method for this integration (firebase/wordpress user creation)
Thank you

Related

How to authenticate in Firebase by sending Otp to users via Email

Is there a way to send OTP via email using Firebase email authentication.
there are only (email + password) and (sign in with email link )available.
I'm trying to make my react native application password less authentication by using firebase
So implemented phone authentication by sending users an OTP .
There is no problem if a users wants to log in with another mobile number which was not in their current phone . They can able to see the message on another device and put in current mobile and they can able to login .
But if it comes to email they must need to signed in the email Id in their current mobile so that only they can able to redirected when they pressed the (firebase email link authentication )
So im looking for Email OTP send verification like in phone auth
if it possible to done with firebase.
*note: I can use send Grind or any other mail sending platforms to send otp and verify but how could I manage the session and tokes in it .

Can you send sign-up link email with Firebase

We are using Firebase on our project and we want only users who recieved an email invitation to be able to access register page and create a profile afterwards.
Can you do that using firebase?
There is nothing built into Firebase Authentication to allow only users you've invited to sign up. When the email+password provider is enabled, anyone can call the API and register.
What you can do though is have a list of the invited email addresses in an online database somewhere (such as Firebase's Realtime Database of Firestore) and check against that list whether a user is authorized after they have signed in.
For an example of how to limit access to the database to specific users, have a look at:
for Realtime Database: How do I lock down Firebase Database to any user from a specific (email) domain?
for Firestore: Restrict Firestore gmail sign in to specific domain

Can Custom Authentication be made in Firebase

I am trying to use a 6 digit code to log-in a user.
The code is available for 20 seconds and is unique to every user.
Briefly explained:
User is already logged in on a mobile app
User press the button "Get Unique Code"
Then, user enter the code on a WebPage on his PC
If the code is correct, show data for that user
What am I asking is if there is way to properly authenticate the user who introduces that code correctly given that I have the userID and all the informations about the user?
I can try and "fake log-in" (display all the information for that user when the code is correct) but there are some issues with this and I would like to avoid it.
I am using Firebase Authentication and Firebase Firestore. JavaScript is used for Web.
You can implement any authentication scheme you want by creating a custom provider for Firebase Authentication.
See Authenticate with Firebase in JavaScript Using a Custom Authentication System and Creating Custom Tokens with the Admin SDK.
In this flow you:
Sign in the users yourself.
Create a custom token for those users in a trusted environment, such as a server you control, or Cloud Functions.
Pass that custom token to Firebase Authentication, which can then use it to identify the user, and secure access to Firestore, Storage, and Realtime Database.

Firebase Phone Auth Resend SMS

With the javascript api, is there a way to 'resend' the verifcation sms text for Firebase SMS? I can't find a solution for javascript
Whenever you call firebase.auth().signInWithPhoneNumber(phoneNumber, appVerifier), Firebase will send an SMS to verify that the user has access to that phone number.
See the Firebase guide on sending a verification code to the user's phone and the reference guide on signInWithPhoneNumber.

Firebase auth using email/phone and passward

in my app at Login screen, I'd like to auth a user by two text inputs, where user could type either Email or Phone number, and password.
There's question, does it possible to auth user by phone and password? or phone auth uses by sending SMS code?
you can't use phone auth using web sdk.
It doesn't support it but native sdk does.
Using react-native-firebase, you can use native sdk(android, ios) with react-native.
react-native-firebase

Categories

Resources