Skip to content

Commit 388942e

Browse files
authored
fix: correct option name in the reset password error message (#1573)
Seems like `sendResetPasswordToken` isn't seen anywhere esle in the project and is supposed to be just `sendResetPassword`.
1 parent df2f5a4 commit 388942e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/better-auth/src/api/routes/forget-password.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export const forgetPassword = createAuthEndpoint(
8484
async (ctx) => {
8585
if (!ctx.context.options.emailAndPassword?.sendResetPassword) {
8686
ctx.context.logger.error(
87-
"Reset password isn't enabled.Please pass an emailAndPassword.sendResetPasswordToken function in your auth config!",
87+
"Reset password isn't enabled.Please pass an emailAndPassword.sendResetPassword function in your auth config!",
8888
);
8989
throw new APIError("BAD_REQUEST", {
9090
message: "Reset password isn't enabled",

0 commit comments

Comments
 (0)