fix(auth): use correct better-auth method for password reset
Change forgetPassword to requestPasswordReset per better-auth docs.
This commit is contained in:
parent
7e401c82eb
commit
257aa55282
1 changed files with 1 additions and 1 deletions
|
|
@ -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`,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue