Skip to content
rw3iss Auth

CompletePasswordResetFlow

flow @rw3iss/auth-client/preact/flows/CompletePasswordResetFlow framework-adapters/preact/components/flows/CompletePasswordResetFlow.tsx ↗

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

NameTypeDescription
clientAuthClient
tokenstringReset token from the email link, if present.
loginHrefstring
classNamestring