feat: add staff certificates feature with pubspec configuration
- Created pubspec.yaml for the staff_certificates feature with dependencies including flutter_bloc, equatable, get_it, and flutter_modular. - Established paths for KROW dependencies: design_system, core_localization, krow_domain, krow_core, and krow_data_connect. - Added firebase_auth and firebase_data_connect as dependencies. - Generated pubspec.lock file to lock dependency versions.
This commit is contained in:
@@ -38,17 +38,12 @@ class AuthRepositoryImpl implements AuthRepositoryInterface {
|
||||
Future<String?> signInWithPhone({required String phoneNumber}) async {
|
||||
final Completer<String?> completer = Completer<String?>();
|
||||
|
||||
print('Starting phone number verification for $phoneNumber');
|
||||
|
||||
await firebaseAuth.verifyPhoneNumber(
|
||||
phoneNumber: phoneNumber,
|
||||
verificationCompleted: (_) {
|
||||
print('Phone verification completed automatically.');
|
||||
print(phoneNumber);
|
||||
},
|
||||
verificationFailed: (FirebaseAuthException e) {
|
||||
if (!completer.isCompleted) {
|
||||
print('Phone verification failed: ${e.message}');
|
||||
completer.completeError(
|
||||
Exception(e.message ?? 'Phone verification failed.'),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user