better-auth-zenstack-multitenancy icon indicating copy to clipboard operation
better-auth-zenstack-multitenancy copied to clipboard

better-auth forgetPassword has been renamed to requestPasswordReset

Open chrishj59 opened this issue 1 month ago • 0 comments

Issue in forgetPass line 32 the code const res = await client.forgetPassword({ email, redirectTo: '/reset-password', }); Generates the error: Property 'forgetPassword' does not exist on type '{ useActiveOrganization: ()

In the current version of Better Auth, this has been renamed to requestPasswordReset.

The above code should read: const res = await client.requestPasswordReset({ email, redirectTo: '/reset-password', });

chrishj59 avatar Nov 30 '25 07:11 chrishj59