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?
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.
From the use of firebase OTP verification using a phone number is FREE.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With