Skip to content

Commit

Permalink
Merge pull request #371 from CollActionteam/fix/manual-logging-auth-repo
Browse files Browse the repository at this point in the history
fix: add manual logging to auth repo
  • Loading branch information
Xazin committed Mar 4, 2023
2 parents b564d68 + cf9b0b0 commit 8906c8d
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions lib/infrastructure/auth/firebase_auth_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,14 @@ class FirebaseAuthRepository implements IAuthRepository, Disposable {

result.add(right(AuthSuccess.codeSent(credential: credential)));
},
verificationFailed: (firebase_auth.FirebaseAuthException error) {
verificationFailed: (firebase_auth.FirebaseAuthException error) async {
await FirebaseCrashlyticsLogger.warn(
error,
null,
message:
'[FirebaseAuthRepository] verifyPhoneNumber().verificationFailed',
);

result.add(left(error.toFailure()));
result.close();
},
Expand Down Expand Up @@ -165,7 +172,13 @@ class FirebaseAuthRepository implements IAuthRepository, Disposable {

result.add(right(AuthSuccess.codeSent(credential: credential)));
},
verificationFailed: (firebase_auth.FirebaseAuthException error) {
verificationFailed: (firebase_auth.FirebaseAuthException error) async {
await FirebaseCrashlyticsLogger.warn(
error,
null,
message: '[FirebaseAuthRepository] resendOTP().verificationFailed',
);

result.add(left(error.toFailure()));
result.close();
},
Expand Down

0 comments on commit 8906c8d

Please sign in to comment.