Components
<TwoFactorCard />
The <TwoFactorCard />
provides a secure interface for managing two-factor authentication (2FA), allowing users to enable or disable 2FA with password confirmation. It handles the complete setup flow including QR code scanning and backup codes generation.
Usage
Here's how you can include <TwoFactorCard />
in your settings page:
Styling
Customize the component appearance using Tailwind CSS classes through the classNames
prop: