Skip to content

Commit

Permalink
fix: add manual logging to auth repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Xazin committed Mar 4, 2023
1 parent b564d68 commit cf9b0b0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/infrastructure/auth/firebase_auth_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ class FirebaseAuthRepository implements IAuthRepository, Disposable {
result.add(right(AuthSuccess.codeSent(credential: credential)));
},
verificationFailed: (firebase_auth.FirebaseAuthException error) {
FirebaseCrashlyticsLogger.warn(
error,
null,
message:
'[FirebaseAuthRepository] verifyPhoneNumber().verificationFailed',
);

result.add(left(error.toFailure()));
result.close();
},
Expand Down Expand Up @@ -166,6 +173,12 @@ class FirebaseAuthRepository implements IAuthRepository, Disposable {
result.add(right(AuthSuccess.codeSent(credential: credential)));
},
verificationFailed: (firebase_auth.FirebaseAuthException error) {
FirebaseCrashlyticsLogger.warn(
error,
null,
message: '[FirebaseAuthRepository] resendOTP().verificationFailed',
);

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

0 comments on commit cf9b0b0

Please sign in to comment.