Firebase 身份验证 - 修复国家/地区
我们在 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 技术交流群。

据我所知,没有办法在 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.