@@ -7,7 +7,6 @@ import 'package:ht_authentication_repository/ht_authentication_repository.dart';
7
7
import 'package:ht_headlines_firestore/ht_headlines_firestore.dart' ;
8
8
import 'package:ht_headlines_repository/ht_headlines_repository.dart' ;
9
9
import 'package:ht_main/app/app.dart' ;
10
- // No longer importing AppBloc here
11
10
import 'package:ht_main/bloc_observer.dart' ;
12
11
import 'package:ht_main/firebase_options.dart' ;
13
12
@@ -18,7 +17,21 @@ void main() async {
18
17
19
18
// --- Instantiate Repositories ---
20
19
// 1. Authentication Repository
21
- final authenticationClient = HtAuthenticationFirebase ();
20
+ // Define ActionCodeSettings for email link sign-in
21
+ final actionCodeSettings = ActionCodeSettings (
22
+ // IMPORTANT: Replace with your actual Firebase Dynamic Link domain/setup
23
+ url: 'https://htmain.page.link/finishLogin' ,
24
+ handleCodeInApp: true ,
25
+ // IMPORTANT: Replace with your actual bundle/package IDs
26
+ iOSBundleId: 'com.example.htMain' , // Example ID
27
+ androidPackageName: 'com.example.ht_main' , // Example ID
28
+ androidInstallApp: true ,
29
+ androidMinimumVersion: '12' , // Optional: Specify minimum Android version
30
+ );
31
+
32
+ final authenticationClient = HtAuthenticationFirebase (
33
+ actionCodeSettings: actionCodeSettings,
34
+ );
22
35
final authenticationRepository = HtAuthenticationRepository (
23
36
authenticationClient: authenticationClient,
24
37
);
0 commit comments