FirebaseExtended / flutterfire_desktop

An early-stage, experimental pure-Dart implementation of Firebase SDKs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The app name in the SMS sent for phone auth is the localhost `127.0.0.1`

pr-Mais opened this issue · comments

Issue description

When using phone authentication, the SMS sent has 127.0.0.1 as the app name. Example:

image

Context

The reCAPTCHA verification step is done on the localhost server and launched in aa WebView, which is causing auth handler to use the domain as an app name.

Phone authentication on the desktop implementation is using the Identity Platform REST API. On Firebase iOS and Android SDK, the auth handler /__/auth/handler can detect and verify the app scheme, for instance, in the iOS SDK here, couple parameters sent which result in the correct app name being sent in the SMS.