我可以自定义Firebase OTP数字(默认为6到4)吗? [英] Can I customize the firebase OTP digits (default 6 to 4)?

查看:74
本文介绍了我可以自定义Firebase OTP数字(默认为6到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.

如果您不想依赖Firebase是否添加/何时添加,可以

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆