我可以自定义Firebase OTP数字(默认为6到4)吗? [英] Can I customize the firebase OTP digits (default 6 to 4)?
问题描述
在我的应用中,我使用的是4位OTP验证服务.现在,我尝试将Firebase电话号码身份验证方法添加为我的后备方法. Firebase OTP给了我6位数字,但我不想更改现有的UI.我该如何自定义呢?
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?
推荐答案
firebaser此处
当前无法更改Firebase使用的验证码的长度.我建议您提交功能请求.
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.
这篇关于我可以自定义Firebase OTP数字(默认为6到4)吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!