
This requires quite a bit of code to process incoming links with the firebase_dynamic_links package. If something is wrong, the sendSignInWithEmailLink method will throw an exception explaining the cause. If everything is configured correctly, you can run your app and send activation links to any email address. This is defined in the authorized domains at the bottom of the the Firebase sign-in method page: TODO: Replace this with your firebase project URL static const String firebaseProjectURL = '' Open the AndroidManifest.xml (normally in android/app/src/main) and add the following lines - with the correct dynamic link domain - inside the main activity: Use the (?) tooltips for instructions on the steps above.
#FLUTTER FIREBASE AUTH EMAIL ANDROID#
add an Android app and set the package name, the SHA-1 and SHA-256 fingerprints.

I'll say it again: Ensure that the support email is set. It's amazing how many people trip up by forgetting this. Firebase project settingsĮnsure that the support email is set. This will be needed when configuring the link in the code. Scroll to the bottom of the page, and note the name of the authorized domains: This opens up a wizard with a number of steps:Īfter completing all the steps, the dynamic links page will look like this:Įnable both Email/Password and Email link as a sign-in method: Once this is done, a new dynamic link can be created. In this example, we use as a Google-provided domain. The first step is to add a URL prefix that represents a custom Dynamic Links domain: To configure passwordless sign-in in Flutter, open the Firebase console for your project, and follow all these steps: 1. how this is implemented in this reference demo app.

#FLUTTER FIREBASE AUTH EMAIL HOW TO#
how to configure passwordless sign-in for iOS & Android with dynamic links in Firebase.This document complements this information by providing setup instructions for Flutter, including: The Firebase docs include setup guides for iOS and Android. In the process, the user's email address is also verified. You can use Firebase Authentication to sign in a user by sending them an email containing a link, which they can click to sign in.
