如何在Expo上使用Firebase Phone Aut(React Native 2022)
我是博览会的新手,我正在尝试通过电话通过firebase身份验证登录的申请,但是我找不到足够的文档 是否有人成功实现了Expo(SDK 44)中的Firebase身份验证 我找到了本教程,但仅与Firebase 8一起使用,当前是Firebase 9.8.4 目前它不再起作用
I'm new to expo, and I'm trying to make an application with login by firebase authentication by phone, however I can't find enough documentation
Has anyone successfully implemented firebase authentication in expo (SDK 44) without ejecting
I found this tutorial but it works only with firebase 8, and the current one is firebase 9.8.4
currently it doesn't work anymore
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用Firebase JS SDK不可能开箱即用的Firebase电话身份验证。这是因为需要使用应用程序验证器对象(recaptcha)作为另一种安全措施来验证用户是真实的,而不是firebase JS SDK工作流中的机器人。
Expo中的FirebaseRecaptcha用于补偿该物体。但是,该模块将不再在SDK 48中可用。可以构建应用程序迁移以反应本地firebase
Firebase phone authentication is not possible out of the box using the Firebase JS SDK. This because an Application Verifier object (reCAPTCHA) is needed as an additional security measure to verify that the user is real and not a bot in Firebase JS SDK workflow.
FirebaseRecaptcha in expo was used to compensate for this object. However, This module will no longer be available in SDK 48 . Apps can be built migrating to React native firebase
对于我来说,这对我有用:
This works for me for the latest one: