<ChangePasswordCard />
The <ChangePasswordCard />
provides a secure and user-friendly interface for users to update their account passwords, seamlessly integrated with your authentication flow. It supports verification workflows to ensure passwords are securely updated, revoking other active sessions when the password changes.

Usage
Here's how you can include <ChangePasswordCard />
in your user account settings page:
This component automatically utilizes the context provided by the AuthUIProvider
and manages password update workflows seamlessly, including revoking other active sessions upon successful password changes.
Reference
The following props can be utilized to further customize <ChangePasswordCard />
:
Prop | Type | Default |
---|---|---|
className? | string | - |
classNames? | SettingsCardClassNames | - |
accounts? | { provider: string; }[] | - |
isPending? | boolean | - |
localization? | AuthLocalization | authLocalization |
skipHook? | boolean | - |
Styling
Customize the component styles extensively by providing Tailwind CSS utility classes through the classNames
prop:
Using with linked social accounts (Set Password)
If a user's account was initially created via a social provider without setting a password, the card automatically transforms into a convenient "Set Password" button. Clicking this button triggers sending the user an email with a link to set their password securely.
You don't have to configure anything extra; this behavior is automatic based on your account setup.
Localization
You can easily adjust the displayed texts via the localization prop: