CompletePasswordResetFlow
Combined password-reset surface — branches on whether a token was provided:
- No token → renders the “send me a reset link” request form.
- Token present → renders the new-password form that completes the reset.
Mount this on a single /auth/reset route and pass token from the
URL search params. The router can keep one route handler instead of
two.
Usage
import { CompletePasswordResetFlow } from '@rw3iss/auth-client/preact/flows';
<CompletePasswordResetFlow />Props
| Name | Type | Description |
|---|---|---|
client | AuthClient | |
token | string | Reset token from the email link, if present. |
loginHref | string | |
className | string |