-
-
Notifications
You must be signed in to change notification settings - Fork 45
Otp related logging #3215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Otp related logging #3215
Conversation
| public void onFailure(OtpErrorType errorType, @Nullable String errorMessage) { | ||
| if (otpCallback == null) return; | ||
| logOtpVerification(false); | ||
| String userMessage = switch (errorType) { | ||
| case INVALID_CREDENTIAL -> getString(R.string.personalid_incorrect_otp); | ||
| case TOO_MANY_REQUESTS -> getString(R.string.personalid_too_many_otp_attempts); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shubham1g5 can we log the Logger.exception from here only as it may be interesting to know the TOO_MANY_REQUESTS, VERIFICATION_FAILED and default error message?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And its better to know how many user is facing TOO_MANY_REQUESTS error so that we can take actions in future accordingly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
@shubham1g5 Also, should we log this failure ? Ideally, it should not fail once Firebase has validated OTP so will be interesting to know? |
43386a6 to
7686788
Compare
That handles result of HQ call to verify otp which can still fail due to netwrok errors which we are already logging as a soft log at the moment, so I don't think it will help further in context of the issues we are getting. |
Product Description
https://dimagi.atlassian.net/browse/CI-113
Technical Summary
Labels and Review