TwoFactorManager
Self-service two-factor (TOTP) management: enrol with an authenticator app, show one-time backup codes, and disable with a password re-auth. The core stays zero-dependency, so QR rendering is delegated to the `qr` snippet — without it the otpauth URI + Base32 secret are shown for manual entry.
Basic
The live preview runs against a mocked demo API (injected via the fetcher prop) — setup returns a demo secret + URI and any 6-digit code reveals demo backup codes (no real verification). The `qr` snippet is omitted here, so the zero-dep manual-entry fallback is shown. The snippet shows the production setup.
Two-factor authentication
Add a second step to sign-in using an authenticator app.
Loading...
Loading syntax highlighting...API Reference
11 props 1 required
Add filter
Grouping
Summary
Column visibility
No matching properties |
No matching properties
Installation
Import
Loading...
Loading syntax highlighting...