iOS Firebase Auth Domain visible to users

谁说胖子不能爱 提交于 2021-01-27 19:24:36

问题


I have searched for solutions to this issue but everything I've found seems to be applicable to a firebase web app, not to iOS implementations.

When verifying a user using firebase phone auth for iOS, I understand the recaptacha is very unlikely to appear. However in the event it does, it creates a webview for the recaptcha like so:

Is there any way for me to hide the myProjectId-12345.firebaseapp.com from the user? It's not very clean or secure I'm afraid. I haven't been able to find anything in the way of documentation on this topic, and most stack overflow answers that solved the issue seem to be applicable to the firebase web sdk only.

Am I missing it somewhere? I have followed the documentation for silent notifications as well, so normally the recaptcha does not appear. From the documentation, "only a very small percentage of users will experience the recaptcha", but I would still like to account for those users.


回答1:


Set up your domain for Hosting

Step 1: Add domain

  • From your project's Hosting page, enter the wizard for connecting a custom domain:

  • If you have only one Hosting site, click Connect domain. If you have more than one Hosting site, click View for the desired site, then
    click Connect domain. Enter the custom domain name that you'd like to connect to your Hosting site.

  • (Optional) Check the box to redirect all requests on the custom
    domain to a second specified domain (such that example.com and
    www.example.com redirect to the same content).

  • Click Continue to initiate the validation process.

Step 2: Verify domain ownership

If requested in the Connect Domain setup wizard, verify your apex domain.

Step 3: Go live

  • In the Connect Domain window of the Firebase console, select Quick Setup for a new site or Advanced Setup if you already have a site running on another hosting provider and need a zero-downtime migration.

Have a look at this for detailed information.



来源:https://stackoverflow.com/questions/62394847/ios-firebase-auth-domain-visible-to-users

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!