[GH-ISSUE #2946] forgetPassword is grammatically incorrect #26731

Closed
opened 2026-04-17 17:22:49 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @ali-issa on GitHub (Jun 7, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/2946

Is there a specific reason the function is named forgetPassword instead of forgotPassword?

The name forgetPassword sounds like it's intended to delete or remove a password, rather than initiate password recovery. This becomes especially confusing when it's used alongside resetPassword and sendResetPassword, as the naming doesn’t follow a consistent or intuitive pattern. It also affects the professionalism and clarity of the codebase.

Renaming it to requestPasswordReset or maybe forgotPassword would better reflect its purpose and align with common industry conventions.

Originally created by @ali-issa on GitHub (Jun 7, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/2946 Is there a specific reason the function is named `forgetPassword` instead of `forgotPassword`? The name `forgetPassword` sounds like it's intended to delete or remove a password, rather than initiate password recovery. This becomes especially confusing when it's used alongside `resetPassword` and `sendResetPassword`, as the naming doesn’t follow a consistent or intuitive pattern. It also affects the professionalism and clarity of the codebase. Renaming it to `requestPasswordReset` or maybe `forgotPassword` would better reflect its purpose and align with common industry conventions.
GiteaMirror added the locked label 2026-04-17 17:22:49 -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#26731