iOS Firebase Auth Domain visible to users

Viewed 312

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:

enter image description here

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 Answers

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.

Related