Skip to content

Pages · Reference

ResetPassword

Handle password reset requests and reset links.

Preview

Back to sign in
Reset password
Enter your email and we will send a reset link if an account exists.
Back to sign in
Choose a new password
Enter a new password for your account.

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.