firebase_auth sendSignInLinkToEmail() dynamicLinkDomain does not account for full URL prefix of connected hosting domains #8955
Labels
plugin: auth
resolution: fixed
A fix has been merged or is pending merge from a PR.
type: bug
Something isn't working
Bug report
Describe the bug
The
FirebaseAuth.instance.sendSignInLinkToEmail()
function does not account for the full URL prefix set in the firebase console dynamic links settings for "connected domains" (or any domain serving Firebase hosting content) when generating the dynamic link.The
dynamicLinkDomain
parameter does not allow for inclusion of the full prefix or account for it if set in Firebase console.Tested on iOS.
Steps to reproduce
Steps to reproduce the behavior:
https://example.domain.com/link
.sendSignInLinkToEmail()
function with values such as:Using
example.domain.com/link
here throws an error.The link is missing the
/link
path segment, so it goes directly to the Flutter Web hosted application instead of using the rewrite rules for the path segment. Example hosting rewrite rules:Expected behavior
The initial part of the link sent to the email address should incorporate the full URL prefix as declared in the firebase console. Either by looking that up in the Firebase console, or allowing it to be specified properly with the
dynamicLinkDomain
parameter.Sample project
Example can be replicated with a skeleton flutter app setup with Firebase.
Current Solution
The current solution or workaround is to utilize a
*.page.link
Dynamic Links url prefix, because domains serving Firebase Web Hosting content do not seem to work.Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
The text was updated successfully, but these errors were encountered: