【问题标题】:Can I customize the firebase OTP digits (default 6 to 4)?我可以自定义 Firebase OTP 数字(默认 6 到 4)吗?
【发布时间】:2018-02-18 19:52:39
【问题描述】:

在我的应用中,我使用的是 4 位 OTP 验证服务。现在我正在尝试添加 Firebase 电话号码身份验证方法作为我的后备方法。 Firebase OTP 给了我 6 位数,但我不想更改我现有的 UI。如何自定义?

【问题讨论】:

  • 嘿,你找到办法了吗?

标签: android authentication firebase sms firebase-authentication


【解决方案1】:

firebaser 在这里

目前无法更改 Firebase 使用的验证码的长度。我推荐你file a feature request

如果您不想依赖 Firebase 是否/何时添加此功能,您可以implement your own identity provider,在那里您可以完全控制其操作,包括密码强度要求。

【讨论】:

  • 这2年有没有加入这个功能?
  • 不。我在我的答案中添加了一个部分,说明您今天如何完成要求。
猜你喜欢
  • 2020-11-03
  • 1970-01-01
  • 2021-11-11
  • 1970-01-01
  • 2019-12-10
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多