I use dynamic links together with firebae auth email link. My app Flutter uses Passwordless Email Sign. I made the change in my project to use deeplink from my domain url. I made the adjustments to the specific Andorid and iOS files. .well-known folder configured correctly. The code snippet below is generating the email link with the url starting with the dynamic url 'page.link'. How do I make the url start with my domain's url and stop using dynamic links?
`await _auth.sendSignInLinkToEmail(
email: email,
actionCodeSettings: ActionCodeSettings(
url: 'https://myurl.app?email=$email',
handleCodeInApp: true,
iOSBundleId: 'br.xx.yyy',
androidPackageName: 'br.xx.zzz',
androidInstallApp: true,
androidMinimumVersion: "1.0.0",
)
)`
Url being generated email link: https://appxxx.page.link/?link=https://app-xx-xxxxx.firebaseapp.com/__/auth/action?apiKey%xxxxxxxxxxxg%26continueUrl%3Dhttps://myurl.app?email%[email protected]%26lang%3Dpt-BR&apn=br.com.xxx.yyy&amv=1.0.0
Desired URL email link: https://myurl.app/?link=https://app-xx-xxxxx.firebaseapp.com/__/auth/action?apiKey%xxxxxxxxxxx%26continueUrl%3Dhttps://myurl.app?email%[email protected]%26lang%3Dpt-BR&apn=br.com.xxx.yyy&amv=1.0.0
From the FAQ on the deprecation of Firebase Dynamic Links (emphasis mine):
So Firebase will provide a replacement for its use of Dynamic Links in the email link authentication flow. There is nothing you need to do for that yourself right now.
If you want to provide your own sign-in flow before Firebase provides a replacement that is possible too, but in that case you'll have to implement the entire sign-in flow yourself. There is no way to change the behavior of
sendSignInLinkToEmailto work with that.