Components
<ResetPasswordForm />
Secure form for users to set a new password after a reset request.
The <ResetPasswordForm /> is used in the password reset flow to securely update a user's password.
Installation
pnpm dlx shadcn@latest add https://stackproviders.github.io/better-auth-ui/r/auth.jsonnpx shadcn@latest add https://stackproviders.github.io/better-auth-ui/r/auth.jsonyarn dlx shadcn@latest add https://stackproviders.github.io/better-auth-ui/r/auth.jsonbun x shadcn@latest add https://stackproviders.github.io/better-auth-ui/r/auth.jsonUsage
import { ResetPasswordForm } from "@/components/auth/forms/reset-password-form";
export default function ResetPasswordPage() {
return <ResetPasswordForm />;
}Reference
| Prop | Type | Default |
|---|---|---|
passwordValidation? | PasswordValidation | - |
localization | Partial<Partial<{ INVALID_USERNAME_OR_PASSWORD: string; EMAIL_NOT_VERIFIED: string; UNEXPECTED_ERROR: string; USERNAME_IS_ALREADY_TAKEN: string; USERNAME_TOO_SHORT: string; USERNAME_TOO_LONG: string; ... 358 more ...; UNKNOWN: string; }>> | - |
classNames? | AuthFormClassNames | - |
className? | string | - |