Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I customize the firebase OTP digits (default 6 to 4)?

In my app, I'm using 4 digit OTP verification service. Now I'm trying to add Firebase phone number authentication method as my fallback method. Firebase OTP gives me 6 digits but I do not want to change my existing UI. How can I customize this?

like image 314
Shyambeer Avatar asked Sep 10 '17 13:09

Shyambeer


People also ask

Can we send OTP using Firebase?

You can use Firebase Authentication to sign in a user by sending an SMS message to the user's phone. The user signs in using a one-time code contained in the SMS message.

Is OTP free in Firebase?

From the use of firebase OTP verification using a phone number is FREE.

How do I remove Captcha verification from Firebase phone auth using Android?

Don't forget to go in Firebase Project Settings > App check > and Register firebase project in SafetyNet and Play Integrity register with default time token 1 hour and u will remove reCaptcha from phone auth OTP! That's awesome.


1 Answers

firebaser here

There is currently no way to change the length of the verification code that Firebase uses. I recommend that you file a feature request.

If you don't want to depend on whether/when Firebase may add this, you can implement your own identity provider, where you have full control over its operation, including the password strength requirements.

like image 53
Frank van Puffelen Avatar answered Sep 30 '22 02:09

Frank van Puffelen