fix(auth): use correct better-auth method for password reset

Change forgetPassword to requestPasswordReset per better-auth docs.
This commit is contained in:
Ajax Davis 2026-01-17 11:33:49 +10:00
parent 7e401c82eb
commit 257aa55282

View file

@ -19,7 +19,7 @@ export default function ForgotPasswordPage() {
setLoading(true);
try {
const { error: resetError } = await authClient.forgetPassword({
const { error: resetError } = await authClient.requestPasswordReset({
email,
redirectTo: `${window.location.origin}/reset-password`,
});