PasswordResetRequestForm
“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
| Name | Type | Description |
|---|---|---|
client | AuthClient | |
defaultEmail | string | Pre-fill from a query param (?email=…). |
successMessage | string | Override the success message. |
onSuccess | () => void | |
onError | (err: Error) => void | |
className | string |