[auth] 允许为默认应用设置自定义身份验证域

作者: henribru创建于 2025年2月7日更新于 2026年1月29日
标签plugin: authenticationimpact: web-implementationWorkflow: Needs Reviewtype: enhancementNeeds Attention

https://GitHub.com/invertase/react-native-firebase/pull/7530 添加了对在调用 `initializeApp` 时设置授权域的支持,但由于我们从来不为默认应用手动设置此域,因此此解决方案在这种情况下并没有帮助。 https://GitHub.com/invertase/react-native-firebase/issues/7523#issuecomment-1864458805 则声称可以通过 `GoogleServices-Info.plist`/`google-services.json` 来设置此域。如果我错了,请纠正我,但似乎并非如此。 https://cloud.google.com/identity-platform/docs/show-custom-domain#java 仅显示了在运行时进行设置的方法,而我尚未通过配置文件实现此操作。 因此,如果授权实例提供了一种类似于 `setCustomAuthDomain` 函数,该函数接收授权域并仅代理到这些原生函数以进行设置,将会很有用。

内容来源: invertase/react-native-firebase