Skip to content
rw3iss Auth

PasswordResetRequestForm

form @rw3iss/auth-client/preact/forms/PasswordResetRequestForm framework-adapters/preact/components/forms/PasswordResetRequestForm.tsx ↗

“Forgot your password?” form. Anonymous flow — does not require a session. On submit, POST /auth/password/reset-request. The server always responds 200 regardless of whether the email is registered (anti-enumeration), so the success state simply tells the user to check their inbox.

Usage

import { PasswordResetRequestForm } from '@rw3iss/auth-client/preact/forms';
<PasswordResetRequestForm
onSuccess={(resp) => navigate("/")}
onError={(err) => console.error(err)}
/>

Props

NameTypeDescription
clientAuthClient
defaultEmailstringPre-fill from a query param (?email=…).
successMessagestringOverride the success message.
onSuccess() => void
onError(err: Error) => void
classNamestring