[PR #8560] feat(email-otp): add resendStrategy option to reuse existing OTP #16308

Closed
opened 2026-04-13 10:29:21 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/8560

State: closed
Merged: Yes


Note

When reusing an OTP, we preserve the existing attempt count rather than resetting it. This ensures that allowedAttempts cannot be bypassed by repeatedly requesting resends.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/8560 **State:** closed **Merged:** Yes --- - Closes #1568 > [!NOTE] > When reusing an OTP, we preserve the existing attempt count rather than resetting it. This ensures that `allowedAttempts` cannot be bypassed by repeatedly requesting resends.
GiteaMirror added the pull-request label 2026-04-13 10:29:21 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#16308