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:
Achintha Isuru
2026-01-25 10:28:43 -05:00
parent b3e156ebbe
commit 9dae80e66e
24 changed files with 2383 additions and 15 deletions

View File

@@ -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.'),
);