flutterdartfirebase-authentication

firebase email verify redirect requires dynamic links, which will be shut down soon


I want to redirect back to my app after completing firebase email verification email.this is the code that I use.

User? user = FirebaseAuth.instance.currentUser;
if (user != null && !user.emailVerified) {
var actionCodeSettings = ActionCodeSettings(
  url: 'https://www.example.com/?email=${user.email}',
  dynamicLinkDomain: 'example.page.link',
  androidPackageName: 'com.example.android',
  androidInstallApp: true,
  androidMinimumVersion: '12',
  iOSBundleId: 'com.example.ios',
  handleCodeInApp: true,
);
await user.sendEmailVerification(actionCodeSettings);
}

I have replaced my domain and other parts.but I get this:

Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions. [ FDL domain is not configured ]

and when I go to firebase console for dynamic links it says it will be shutdown soon.So what should do?


Solution

  • Update (June 2025): Firebase has updated its guidance. From the Dynamic Links FAQ on authentication:

    How are the following Authentication features impacted: email link authentication, password reset, and email verification?

    Email link authentication and your out of band email actions with Firebase will continue to work, however you will need to upgrade to the latest Firebase Authentication SDKs and migrate to the new solution in order to continue using these actions after the Firebase Dynamic Links service is shut down on August 25, 2025.

    You can follow the guides linked below for instructions on how to complete the migration:

    Important: If you have older versions of your app that do not use the new version of the Authentication SDK, these specific Authentication features will no longer work in those older app versions after the Dynamic Links shutdown.


    My original, oudated answer is below.

    From the Firebase Dynamic Links Shutdown FAQ:

    I'm currently using or need to use Dynamic links for email link authentication in Firebase Authentication. Will this feature continue to work after the sunset?

    Yes, your email link authentication using Firebase Authentication will continue to work.

    Firebase Authentication currently uses Firebase Dynamic Links to customize Authentication links, but we will provide an update that will require a client- side update to ensure that email link auth continues working after the Firebase Dynamic Links service is shut down.

    Note that Firebase Authentication only depends on the Firebase Dynamic Links service internally, but does not depend on the Firebase Dynamic Links SDK.