Firebase 身份验证 - 修复国家/地区

发布于 01-10 02:33 字数 266 浏览 2 评论 0原文

我们在 ionic 应用程序中使用 firebase 移动身份验证。我们已将默认国家/地区代码设置为“IN”设置。 下面是代码:

 signInOptions: [
        {
          provider: firebase.....,
          defaultCountry: 'IN',
        },
      ],

现在,我们要将国家/地区代码固定为“IN”(用户不应更改)。
请建议如何实现这一目标?

We are using firebase mobile authentication in ionic application. We have set default country code to 'IN' the setting.
below is the code:

 signInOptions: [
        {
          provider: firebase.....,
          defaultCountry: 'IN',
        },
      ],

Now, we want to fix the country country code to 'IN' (User should not be able to change).
Please suggest how to achieve this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

瞄了个咪的2025-01-17 02:33:24

据我所知,没有办法在 FirebaseUI 中设置固定的国家/地区。

它是一个开源库,所以可以考虑分叉它并添加它突出你自己。您甚至可以将 PR 提交回主存储库,我确信我们将不胜感激。

As far as I know, there is no way to set a fixed the country in FirebaseUI.

It is an open-source library though, so could consider forking it and adding that feature yourself. You could even then submit a PR back to the main repo, which I'm quite sure would be appreciated.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文