You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
debug(otp): add detailed logging to OTP protection
Add debug logging to track:
- Token type mapping in getTokenTypeForVerification
- Invalidation checks in checkOTPTokenInvalidated
- Attempt recording in recordOTPAttempt
- SQL query execution and results
This will help diagnose why OTP brute force protection
isn't triggering in staging environment.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
}).Debug("OTP Protection: Checked if token is invalidated")
735
744
iferr==nil&&invalidated {
736
745
returnnil, apierrors.NewForbiddenError(apierrors.ErrorCodeOTPExpired, "Token has been invalidated due to too many failed attempts. Please request a new verification code.")
0 commit comments