dart-identity-firebase-link

Authenticate using Email Link by Firebase for Identity package

Getting Started

  1. Enable Sign In With Link in Authentication settings of Firebase's project
  2. Create a dynamic link domain and add it to authorised domains in Authentication settings
  3. Add below package
identity_firebase_link: ^0.1.0
  1. Add following code to initState of main page
import 'package:identity/identity.dart';
import 'package:identity_firebase/identity_firebase.dart';
import 'package:identity_firebase_link/identity_firebase_link.dart';

// ...

@override
  void initState() {
    super.initState();
    Identity.of(context).init(
        FirebaseProvider([
          FirebaseEmailLinkAuthenticator(
              url: 'https://yourapp.firebaseapp.com',
              iOSBundleID: "com.example.app",
              androidPackageName: "com.example.app")
        ]),
        (context) => HomePage());
  }
  1. Run the app

Screenshot_1578638981 Screenshot_1578639120

Libraries