Pages · Reference
ResetPassword
Handle password reset requests and reset links.
Preview
Usage
tsx
import { ResetPassword } from "@krak-stack/auth/reset-password/react";
export const Example = () => <ResetPassword />;
Mount ResetPassword on /reset-password. Without a token, it requests a reset link, then shows a confirmation and enables resending after one minute. With a token, it accepts a new password and signs out the current browser session.
React reads the token and confirmation from the route and navigates to sign-in after a successful reset. In Effect UI HTML, pass the callback URL as redirectTo, the redacted token when present, and optionally a confirmation from the host route. Handle PasswordChanged to navigate after a successful reset.