Shyambeer Singh
Shyambeer Singh

Reputation: 328

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?

Upvotes: 19

Views: 10010

Answers (1)

Frank van Puffelen
Frank van Puffelen

Reputation: 599686

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.

Upvotes: 6

Related Questions